diff 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
line wrap: on
line diff
--- a/plugins/docklet/docklet.c	Mon Nov 11 02:50:14 2002 +0000
+++ b/plugins/docklet/docklet.c	Mon Nov 11 03:18:00 2002 +0000
@@ -164,6 +164,9 @@
 }
 
 static void docklet_clicked(GtkWidget *button, GdkEventButton *event, void *data) {
+	if (event->type != GDK_BUTTON_PRESS)
+		return;
+
 	switch (event->button) {
 		case 1:
 			if (unread_message_queue) {
@@ -182,7 +185,7 @@
 }
 
 static void docklet_update_icon() {
-	gchar *filename;
+	gchar *filename = NULL;
 	GdkPixbuf *unscaled;
 
 	switch (status) {
@@ -201,7 +204,7 @@
 		case connecting:
 			filename = g_build_filename(DATADIR, "pixmaps", "gaim", "connect.png", NULL);
 			break;
-		default:
+		case offline:
 			filename = g_build_filename(DATADIR, "pixmaps", "gaim", "offline.png", NULL);
 	}