Changeset 2550

Show
Ignore:
Timestamp:
02/04/06 15:57:03
Author:
chipx86
Message:

Ensure that the notification window is always realized before we start operating on its GdkWindow. This fixes bug #10.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/notification-daemon/ChangeLog

    r2547 r2550  
     1Sat Feb 04 15:56:28 PST 2006  Christian Hammond <chipx86@chipx86.com> 
     2 
     3    * src/daemon.c: 
     4    * themes/bubble/theme.c: 
     5      - Ensure that the notification window is always realized before we 
     6        start operating on its GdkWindow. This fixes bug #10. 
     7 
    18Sat Feb 04 13:15:29 PST 2006  Christian Hammond <chipx86@chipx86.com> 
    29 
  • trunk/notification-daemon/src/daemon.c

    r2545 r2550  
    838838        nw = theme_create_notification(url_clicked_cb); 
    839839        g_object_set_data(G_OBJECT(nw), "_notify_daemon", daemon); 
     840        gtk_widget_realize(GTK_WIDGET(nw)); 
    840841        new_notification = TRUE; 
    841842 
  • trunk/notification-daemon/themes/bubble/theme.c

    r2427 r2550  
    66{ 
    77    return GTK_WINDOW(egg_notification_bubble_widget_new()); 
    8 } 
    9  
    10 void 
    11 destroy_notification(GtkWindow *nw) 
    12 { 
    13     gtk_widget_destroy(GTK_WIDGET(nw)); 
    148} 
    159 
     
    2923set_notification_hints(GtkWindow *nw, GHashTable *hints) 
    3024{ 
    31     egg_notification_bubble_widget_set_hints(EGG_NOTIFICATION_BUBBLE_WIDGET(nw), hints); 
     25    egg_notification_bubble_widget_set_hints( 
     26        EGG_NOTIFICATION_BUBBLE_WIDGET(nw), hints); 
    3227} 
    3328