Ticket #145: notification-daemon-0.3.7-bubble-theme-fix.patch
-
./src/themes/bubble/eggnotificationbubblewidget.c
old new 207 207 gtk_container_remove (GTK_CONTAINER (bubble_widget->table), 208 208 bubble_widget->bubble_widget_body_label); 209 209 210 if (bubble_widget->button_hbox != NULL && 211 gtk_widget_get_parent (bubble_widget->button_hbox) != NULL) 212 gtk_container_remove (GTK_CONTAINER (bubble_widget->table), 213 bubble_widget->button_hbox); 210 if (bubble_widget->button_hbox != NULL) 211 { 212 gtk_widget_ref (bubble_widget->button_hbox); 213 if (gtk_widget_get_parent (bubble_widget->button_hbox) != NULL) 214 gtk_container_remove (GTK_CONTAINER (bubble_widget->table), 215 gtk_widget_get_parent (bubble_widget->button_hbox)); 216 } 214 217 215 218 if (alignment == TRIANGLE_LEFT) 216 219 { … … 265 268 0, 0); 266 269 267 270 gtk_container_add(GTK_CONTAINER(alignment), bubble_widget->button_hbox); 271 gtk_widget_unref (bubble_widget->button_hbox); 268 272 } 269 273 270 274 gtk_widget_show_all (bubble_widget->table); … … 1189 1193 egg_notification_bubble_widget_clear_buttons (EggNotificationBubbleWidget *bubble_widget) 1190 1194 { 1191 1195 if (bubble_widget->button_hbox != NULL) 1192 gtk_widget_destroy (bubble_widget->button_hbox); 1196 { 1197 if (gtk_widget_get_parent (bubble_widget->button_hbox) != NULL) 1198 gtk_widget_destroy (gtk_widget_get_parent (bubble_widget->button_hbox)); 1199 else 1200 gtk_widget_destroy (bubble_widget->button_hbox); 1201 } 1193 1202 1194 1203 bubble_widget->button_hbox = NULL; 1195 1204 } -
./src/themes/bubble/theme.c
old new 78 78 egg_notification_bubble_widget_set_pos(EGG_NOTIFICATION_BUBBLE_WIDGET(nw), 79 79 x, y); 80 80 } 81 82 void 83 clear_notification_actions(GtkWindow *nw) 84 { 85 egg_notification_bubble_widget_clear_buttons( 86 EGG_NOTIFICATION_BUBBLE_WIDGET(nw)); 87 }
