Mercurial > pidgin
comparison plugins/notify.c @ 12286:255e6912607b
[gaim-migrate @ 14590]
Mostly whitespace, but a couple small typo fixes, and an A;B -> B;A; swap to
be consistent in plugins/notify.c
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Thu, 01 Dec 2005 21:13:48 +0000 |
parents | 5cd2294127e8 |
children | 8d1cf3f847b1 |
comparison
equal
deleted
inserted
replaced
12285:af257d8679fe | 12286:255e6912607b |
---|---|
311 } | 311 } |
312 | 312 |
313 if (gaim_prefs_get_bool("/plugins/gtk/X11/notify/notify_click")) { | 313 if (gaim_prefs_get_bool("/plugins/gtk/X11/notify/notify_click")) { |
314 /* TODO similarly should really find a way to allow for clicking in other | 314 /* TODO similarly should really find a way to allow for clicking in other |
315 * places of the window */ | 315 * places of the window */ |
316 id = g_signal_connect(G_OBJECT(gtkconv->imhtml), "button-press-event", | |
317 G_CALLBACK(unnotify_cb), conv); | |
318 imhtml_ids = g_slist_append(imhtml_ids, GUINT_TO_POINTER(id)); | |
319 | |
320 id = g_signal_connect(G_OBJECT(gtkconv->entry), "button-press-event", | 316 id = g_signal_connect(G_OBJECT(gtkconv->entry), "button-press-event", |
321 G_CALLBACK(unnotify_cb), conv); | 317 G_CALLBACK(unnotify_cb), conv); |
322 entry_ids = g_slist_append(entry_ids, GUINT_TO_POINTER(id)); | 318 entry_ids = g_slist_append(entry_ids, GUINT_TO_POINTER(id)); |
319 | |
320 id = g_signal_connect(G_OBJECT(gtkconv->imhtml), "button-press-event", | |
321 G_CALLBACK(unnotify_cb), conv); | |
322 imhtml_ids = g_slist_append(imhtml_ids, GUINT_TO_POINTER(id)); | |
323 } | 323 } |
324 | 324 |
325 if (gaim_prefs_get_bool("/plugins/gtk/X11/notify/notify_type")) { | 325 if (gaim_prefs_get_bool("/plugins/gtk/X11/notify/notify_type")) { |
326 id = g_signal_connect(G_OBJECT(gtkconv->entry), "key-press-event", | 326 id = g_signal_connect(G_OBJECT(gtkconv->entry), "key-press-event", |
327 G_CALLBACK(unnotify_cb), conv); | 327 G_CALLBACK(unnotify_cb), conv); |
406 | 406 |
407 detach_signals(conv); | 407 detach_signals(conv); |
408 | 408 |
409 gaimwin = GAIM_GTK_CONVERSATION(conv)->win; | 409 gaimwin = GAIM_GTK_CONVERSATION(conv)->win; |
410 | 410 |
411 | |
412 handle_urgent(gaimwin, FALSE); | 411 handle_urgent(gaimwin, FALSE); |
413 gaim_conversation_set_data(conv, "notify-message-count", GINT_TO_POINTER(0)); | 412 gaim_conversation_set_data(conv, "notify-message-count", GINT_TO_POINTER(0)); |
414 | |
415 | 413 |
416 return; | 414 return; |
417 | 415 |
418 #if 0 | 416 #if 0 |
419 /* i think this line crashes */ | 417 /* i think this line crashes */ |
515 | 513 |
516 hints = XGetWMHints(GDK_WINDOW_XDISPLAY(win->window->window), | 514 hints = XGetWMHints(GDK_WINDOW_XDISPLAY(win->window->window), |
517 GDK_WINDOW_XWINDOW(win->window->window)); | 515 GDK_WINDOW_XWINDOW(win->window->window)); |
518 if(!hints) | 516 if(!hints) |
519 hints = XAllocWMHints(); | 517 hints = XAllocWMHints(); |
518 | |
520 if (add) | 519 if (add) |
521 hints->flags |= XUrgencyHint; | 520 hints->flags |= XUrgencyHint; |
522 else | 521 else |
523 hints->flags &= ~XUrgencyHint; | 522 hints->flags &= ~XUrgencyHint; |
524 XSetWMHints(GDK_WINDOW_XDISPLAY(win->window->window), | 523 XSetWMHints(GDK_WINDOW_XDISPLAY(win->window->window), |