[gnome-photos] notification-manager: Don't show two close buttons in notifications
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] notification-manager: Don't show two close buttons in notifications
- Date: Tue, 30 Jul 2013 10:02:25 +0000 (UTC)
commit fd444fb9fae801b9733aae5acf0b2fa8191bb377
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Jul 30 12:00:40 2013 +0200
notification-manager: Don't show two close buttons in notifications
Use properties to override defaults during object construction instead
of accessor methods.
Fixes: https://bugzilla.gnome.org/704273
src/photos-notification-manager.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/photos-notification-manager.c b/src/photos-notification-manager.c
index acd708d..eac5c98 100644
--- a/src/photos-notification-manager.c
+++ b/src/photos-notification-manager.c
@@ -86,8 +86,6 @@ photos_notification_manager_init (PhotosNotificationManager *self)
gtk_widget_set_halign (GTK_WIDGET (self), GTK_ALIGN_CENTER);
gtk_widget_set_valign (GTK_WIDGET (self), GTK_ALIGN_START);
- gd_notification_set_show_close_button (GD_NOTIFICATION (self), FALSE);
- gd_notification_set_timeout (GD_NOTIFICATION (self), -1);
priv->grid = gtk_grid_new ();
gtk_orientable_set_orientation (GTK_ORIENTABLE (priv->grid), GTK_ORIENTATION_VERTICAL);
@@ -114,7 +112,7 @@ photos_notification_manager_class_init (PhotosNotificationManagerClass *class)
GtkWidget *
photos_notification_manager_new (void)
{
- return g_object_new (PHOTOS_TYPE_NOTIFICATION_MANAGER, NULL);
+ return g_object_new (PHOTOS_TYPE_NOTIFICATION_MANAGER, "show-close-button", FALSE, "timeout", -1, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]