Lines 22-27
Link Here
|
22 |
use base qw(RSSReader::Logger RSSReader::GtkUI); |
22 |
use base qw(RSSReader::Logger RSSReader::GtkUI); |
23 |
|
23 |
|
24 |
our $_main_window; |
24 |
our $_main_window; |
|
|
25 |
my $images_dir = '/usr/share/syndigator/images/'; |
25 |
|
26 |
|
26 |
sub new { |
27 |
sub new { |
27 |
my $c = shift; |
28 |
my $c = shift; |
Lines 89-95
Link Here
|
89 |
|
90 |
|
90 |
|
91 |
|
91 |
my $style = $window->get_style()->bg( 'normal' ); |
92 |
my $style = $window->get_style()->bg( 'normal' ); |
92 |
my ( $l_pixmap, $l_mask ) = Gtk::Gdk::Pixmap->create_from_xpm( $window->window, $style, "./images/logo-simple.xpm" ); |
93 |
my ( $l_pixmap, $l_mask ) = Gtk::Gdk::Pixmap->create_from_xpm( $window->window, $style, $images_dir.'logo-simple.xpm' ); |
93 |
$window->window->set_icon($window->window, $l_pixmap, $l_mask); |
94 |
$window->window->set_icon($window->window, $l_pixmap, $l_mask); |
94 |
|
95 |
|
95 |
|
96 |
|
Lines 248-255
Link Here
|
248 |
$s->{_online_button}->set_relief('none'); |
249 |
$s->{_online_button}->set_relief('none'); |
249 |
$s->{_online_button}->show; |
250 |
$s->{_online_button}->show; |
250 |
$s->{_status_hbox}->pack_end($s->{_online_button},0,0,0); |
251 |
$s->{_status_hbox}->pack_end($s->{_online_button},0,0,0); |
251 |
$s->{online_pix} = Gnome::Pixmap->new_from_file('images/online.png'); |
252 |
$s->{online_pix} = Gnome::Pixmap->new_from_file($images_dir.'online.png'); |
252 |
$s->{offline_pix} = Gnome::Pixmap->new_from_file('images/offline.png'); |
253 |
$s->{offline_pix} = Gnome::Pixmap->new_from_file($images_dir.'offline.png'); |
253 |
$s->{online_pix}->show(); |
254 |
$s->{online_pix}->show(); |
254 |
$s->{offline_pix}->show(); |
255 |
$s->{offline_pix}->show(); |
255 |
$s->{_online_button_tooltips} = new Gtk::Tooltips(); |
256 |
$s->{_online_button_tooltips} = new Gtk::Tooltips(); |
Lines 338-344
Link Here
|
338 |
my @importers = RSSReader::Importer->get_importers(); |
339 |
my @importers = RSSReader::Importer->get_importers(); |
339 |
foreach my $importer (@importers) { |
340 |
foreach my $importer (@importers) { |
340 |
my $imp_item = Gnome::Stock->menu_item( "Add", $importer->name() ); |
341 |
my $imp_item = Gnome::Stock->menu_item( "Add", $importer->name() ); |
341 |
$imp_item->signal_connect( 'activate', sub{ RSSReader::GtkUI::ImporterDruid->run($importer) } ); |
342 |
$imp_item->signal_connect( 'activate', sub{ RSSReader::GtkUI::ImporterDruid->run($importer, $images_dir) } ); |
342 |
$import_menu->append($imp_item); |
343 |
$import_menu->append($imp_item); |
343 |
} |
344 |
} |
344 |
$import_item->set_submenu($import_menu); |
345 |
$import_item->set_submenu($import_menu); |
Lines 400-406
Link Here
|
400 |
my $help_menu = new Gtk::MenuItem("Help"); |
401 |
my $help_menu = new Gtk::MenuItem("Help"); |
401 |
my $help_submenu = new Gtk::Menu; |
402 |
my $help_submenu = new Gtk::Menu; |
402 |
my $about_item = Gnome::Stock->menu_item( "Menu_About", 'About' ); |
403 |
my $about_item = Gnome::Stock->menu_item( "Menu_About", 'About' ); |
403 |
$about_item->signal_connect('activate', sub {Gnome::About->new('Syndigator', $VERSION, undef, ['Bruno Tavares', 'Paulo Anes'],'http://syndigator.sf.net', 'images/logo-124x22.xpm')->show()} ); |
404 |
$about_item->signal_connect('activate', sub {Gnome::About->new('Syndigator', $VERSION, undef, ['Bruno Tavares', 'Paulo Anes'],'http://syndigator.sf.net', $images_dir.'logo-124x22.xpm')->show()} ); |
404 |
$about_item->show(); |
405 |
$about_item->show(); |
405 |
$help_submenu->append($about_item); |
406 |
$help_submenu->append($about_item); |
406 |
$help_menu->set_submenu($help_submenu); |
407 |
$help_menu->set_submenu($help_submenu); |