pidgin/gtkdocklet-gtk.c

branch
cpw.qulogic.gtk3
changeset 32424
be4a642b2d45
parent 31474
2e78685c09e0
parent 32414
8c5d1edf9da2
equal deleted inserted replaced
31579:a0a4b018f9eb 32424:be4a642b2d45
165 icon_name = PIDGIN_STOCK_TRAY_CONNECT; 165 icon_name = PIDGIN_STOCK_TRAY_CONNECT;
166 166
167 if (icon_name) { 167 if (icon_name) {
168 gtk_status_icon_set_from_icon_name(docklet, icon_name); 168 gtk_status_icon_set_from_icon_name(docklet, icon_name);
169 } 169 }
170
171 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/docklet/blink")) {
172 gtk_status_icon_set_blinking(docklet, (pending && !connecting));
173 } else if (gtk_status_icon_get_blinking(docklet)) {
174 gtk_status_icon_set_blinking(docklet, FALSE);
175 }
176 } 170 }
177 171
178 static void 172 static void
179 docklet_gtk_status_set_tooltip(gchar *tooltip) 173 docklet_gtk_status_set_tooltip(gchar *tooltip)
180 { 174 {
181 gtk_status_icon_set_tooltip(docklet, tooltip); 175 gtk_status_icon_set_tooltip_text(docklet, tooltip);
182 } 176 }
183 177
184 static void 178 static void
185 docklet_gtk_status_position_menu(GtkMenu *menu, 179 docklet_gtk_status_position_menu(GtkMenu *menu,
186 int *x, int *y, gboolean *push_in, 180 int *x, int *y, gboolean *push_in,

mercurial