Mercurial > pidgin
comparison plugins/docklet/docklet.c @ 3939:49d42b275a68
[gaim-migrate @ 4115]
.todo file spelling fixes.
(22:11:39) Robot101: Fixes bug with multiple consecutive docklet clicks not
correctly showing and hiding the blist
(22:12:26) Robot101: Fixes compile warning in docklet.c the correct way
(without adding a default to the switch on an enum)
(22:12:53) Robot101: Avoids the blist being moved off-screen by the position
remembering code, and does the move before showing it instead of after
(22:13:50) Robot101: Fix evil behaviour with disappearing blists when you
switch desktop or minimise by removing the silly code
(22:14:24) Robot101: Replace it with nice code that raises the blist when you
click the docklet if it's fully obscured
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 11 Nov 2002 03:18:00 +0000 |
parents | 43e396e94095 |
children | 987624dcece4 |
comparison
equal
deleted
inserted
replaced
3938:5e390f6f8efc | 3939:49d42b275a68 |
---|---|
162 gtk_widget_show_all(menu); | 162 gtk_widget_show_all(menu); |
163 gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, event->button, event->time); | 163 gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, event->button, event->time); |
164 } | 164 } |
165 | 165 |
166 static void docklet_clicked(GtkWidget *button, GdkEventButton *event, void *data) { | 166 static void docklet_clicked(GtkWidget *button, GdkEventButton *event, void *data) { |
167 if (event->type != GDK_BUTTON_PRESS) | |
168 return; | |
169 | |
167 switch (event->button) { | 170 switch (event->button) { |
168 case 1: | 171 case 1: |
169 if (unread_message_queue) { | 172 if (unread_message_queue) { |
170 docklet_flush_queue(); | 173 docklet_flush_queue(); |
171 docklet_update_status(); | 174 docklet_update_status(); |
180 break; | 183 break; |
181 } | 184 } |
182 } | 185 } |
183 | 186 |
184 static void docklet_update_icon() { | 187 static void docklet_update_icon() { |
185 gchar *filename; | 188 gchar *filename = NULL; |
186 GdkPixbuf *unscaled; | 189 GdkPixbuf *unscaled; |
187 | 190 |
188 switch (status) { | 191 switch (status) { |
189 case online: | 192 case online: |
190 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "online.png", NULL); | 193 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "online.png", NULL); |
199 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "msgunread.png", NULL); | 202 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "msgunread.png", NULL); |
200 break; | 203 break; |
201 case connecting: | 204 case connecting: |
202 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "connect.png", NULL); | 205 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "connect.png", NULL); |
203 break; | 206 break; |
204 default: | 207 case offline: |
205 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "offline.png", NULL); | 208 filename = g_build_filename(DATADIR, "pixmaps", "gaim", "offline.png", NULL); |
206 } | 209 } |
207 | 210 |
208 unscaled = gdk_pixbuf_new_from_file(filename, NULL); | 211 unscaled = gdk_pixbuf_new_from_file(filename, NULL); |
209 | 212 |