summaryrefslogtreecommitdiff
path: root/lib/URLQueue/MainController.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/URLQueue/MainController.pm')
-rw-r--r--lib/URLQueue/MainController.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/URLQueue/MainController.pm b/lib/URLQueue/MainController.pm
index 8078612..8892578 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'=>'gnome-stock-book-open');
+ $self->{input}->set_from_stock('gnome-stock-book-open','large-toolbar');
$self->{_dragging}=1;
}
@@ -44,7 +44,7 @@ sub drag_leave {
my ($self, $widget, $context, $time) = @_;
if ($self->{_dragging}) {
- $self->{input}->set('icon-name'=>'gnome-stock-book-green');
+ $self->{input}->set_from_stock('gnome-stock-book-green','large-toolbar');
$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'=>'gnome-stock-book-yellow');
+ $self->{input}->set_from_stock('gnome-stock-book-yellow','large-toolbar');
$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'=>'gnome-stock-book-green');
+ $self->{input}->set_from_stock('gnome-stock-book-green','large-toolbar');
return 1;
}
@@ -94,7 +94,7 @@ sub button_release {
my ($self,$widget,$event)=@_;
if ($event->button==2) {
- $self->{input}->set('icon-name'=>'gnome-stock-book-yellow');
+ $self->{input}->set_from_stock('gnome-stock-book-yellow','large-toolbar');
my $clipboard=Gtk2::Clipboard->get(Gtk2::Gdk->SELECTION_PRIMARY);
$clipboard->request_text(sub{$self->handle_text($_[1])});
return 1;