From cab10c121dd713d6274adfaa5c0890f338b3717b Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 24 Apr 2008 18:10:48 +0000 Subject: fixed for new GNOME icons git-svn-id: svn://luxion/repos/URLQueue/trunk@337 fcb26f47-9200-0410-b104-b98ab5b095f3 --- lib/URLQueue/MainController.pm | 12 ++++---- lib/URLQueue/main.glade | 68 ++++++++++++++++-------------------------- script/URLQueue.pl | 5 +++- 3 files changed, 36 insertions(+), 49 deletions(-) diff --git a/lib/URLQueue/MainController.pm b/lib/URLQueue/MainController.pm index d76350f..8078612 100644 --- a/lib/URLQueue/MainController.pm +++ b/lib/URLQueue/MainController.pm @@ -33,7 +33,7 @@ sub drag_motion { $context->status($context->suggested_action,$time); if (!$self->{_dragging}) { - $self->{input}->set('icon-name'=>'stock_book_open'); + $self->{input}->set('icon-name'=>'gnome-stock-book-open'); $self->{_dragging}=1; } @@ -44,7 +44,7 @@ sub drag_leave { my ($self, $widget, $context, $time) = @_; if ($self->{_dragging}) { - $self->{input}->set('icon-name'=>'stock_book_green'); + $self->{input}->set('icon-name'=>'gnome-stock-book-green'); $self->{_dragging}=0; } @@ -55,7 +55,7 @@ sub drag_drop { my ($self, $widget, $context, $x, $y, $time) = @_; if (my $atom=$context->targets) { - $self->{input}->set('icon-name'=>'stock_book_yellow'); + $self->{input}->set('icon-name'=>'gnome-stock-book-yellow'); $widget->drag_get_data($context, $atom, $time); return 1; } @@ -76,7 +76,7 @@ sub drag_data_received { warn "What is $info??"; } - $self->{input}->set('icon-name'=>'stock_book_green'); + $self->{input}->set('icon-name'=>'gnome-stock-book-green'); return 1; } @@ -94,7 +94,7 @@ sub button_release { my ($self,$widget,$event)=@_; if ($event->button==2) { - $self->{input}->set('icon-name'=>'stock_book_yellow'); + $self->{input}->set('icon-name'=>'gnome-stock-book-yellow'); my $clipboard=Gtk2::Clipboard->get(Gtk2::Gdk->SELECTION_PRIMARY); $clipboard->request_text(sub{$self->handle_text($_[1])}); return 1; @@ -175,7 +175,7 @@ $body EOM my $sender=Email::Send->new({mailer=>'SMTP'}); - $sender->mailer_args([Host=>'exelion']); + $sender->mailer_args([Host=>'luxion']); $sender->send($message); } diff --git a/lib/URLQueue/main.glade b/lib/URLQueue/main.glade index bde7b30..5ca5320 100644 --- a/lib/URLQueue/main.glade +++ b/lib/URLQueue/main.glade @@ -1,44 +1,28 @@ - - - + + + - - - 50 - 50 - True - URLQueue - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE - False - True - False - stock_bookmark - False - False - True - GDK_WINDOW_TYPE_HINT_UTILITY - GDK_GRAVITY_NORTH_WEST - True - False - - - - - True - 4 - stock_book_green - 0.5 - 0.5 - 0 - 0 - - - - - - - - - + + 50 + 50 + True + GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_STRUCTURE_MASK + URLQueue + stock_bookmark + GDK_WINDOW_TYPE_HINT_UTILITY + True + False + + + + True + gnome-stock-book-green + + + + + + + + diff --git a/script/URLQueue.pl b/script/URLQueue.pl index 6eac301..fceb83d 100644 --- a/script/URLQueue.pl +++ b/script/URLQueue.pl @@ -1,9 +1,12 @@ #!/usr/bin/perl use strict; use warnings; -use Gtk2 qw(-init); +#use Gtk2 qw(-init); +use Gnome2; use URLQueue::MainController; +Gnome2::Program->init('URLQueue','1.0'); + my $main_controller=URLQueue::MainController->new(); $main_controller->run; -- cgit v1.2.3