[Galago-commits] r2550 - in trunk/notification-daemon: . src
themes/bubble
galago-commits at freedesktop.org
galago-commits at freedesktop.org
Sat Feb 4 15:57:07 PST 2006
Author: chipx86
Date: 2006-02-04 15:57:03 -0800 (Sat, 04 Feb 2006)
New Revision: 2550
Modified:
trunk/notification-daemon/ChangeLog
trunk/notification-daemon/src/daemon.c
trunk/notification-daemon/themes/bubble/theme.c
Log:
Ensure that the notification window is always realized before we start operating on its GdkWindow. This fixes bug #10.
Modified: trunk/notification-daemon/ChangeLog
===================================================================
--- trunk/notification-daemon/ChangeLog 2006-02-04 21:29:50 UTC (rev 2549)
+++ trunk/notification-daemon/ChangeLog 2006-02-04 23:57:03 UTC (rev 2550)
@@ -1,3 +1,10 @@
+Sat Feb 04 15:56:28 PST 2006 Christian Hammond <chipx86 at chipx86.com>
+
+ * src/daemon.c:
+ * themes/bubble/theme.c:
+ - Ensure that the notification window is always realized before we
+ start operating on its GdkWindow. This fixes bug #10.
+
Sat Feb 04 13:15:29 PST 2006 Christian Hammond <chipx86 at chipx86.com>
* themes/standard/theme.c:
Modified: trunk/notification-daemon/src/daemon.c
===================================================================
--- trunk/notification-daemon/src/daemon.c 2006-02-04 21:29:50 UTC (rev 2549)
+++ trunk/notification-daemon/src/daemon.c 2006-02-04 23:57:03 UTC (rev 2550)
@@ -837,6 +837,7 @@
{
nw = theme_create_notification(url_clicked_cb);
g_object_set_data(G_OBJECT(nw), "_notify_daemon", daemon);
+ gtk_widget_realize(GTK_WIDGET(nw));
new_notification = TRUE;
g_signal_connect(G_OBJECT(nw), "button-release-event",
Modified: trunk/notification-daemon/themes/bubble/theme.c
===================================================================
--- trunk/notification-daemon/themes/bubble/theme.c 2006-02-04 21:29:50 UTC (rev 2549)
+++ trunk/notification-daemon/themes/bubble/theme.c 2006-02-04 23:57:03 UTC (rev 2550)
@@ -8,12 +8,6 @@
}
void
-destroy_notification(GtkWindow *nw)
-{
- gtk_widget_destroy(GTK_WIDGET(nw));
-}
-
-void
show_notification(GtkWindow *nw)
{
egg_notification_bubble_widget_show(EGG_NOTIFICATION_BUBBLE_WIDGET(nw));
@@ -28,7 +22,8 @@
void
set_notification_hints(GtkWindow *nw, GHashTable *hints)
{
- egg_notification_bubble_widget_set_hints(EGG_NOTIFICATION_BUBBLE_WIDGET(nw), hints);
+ egg_notification_bubble_widget_set_hints(
+ EGG_NOTIFICATION_BUBBLE_WIDGET(nw), hints);
}
void
More information about the galago-commits
mailing list