From 2296eaf57e3f07f6f19ab884e3206155ba3ea8a8 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 24 Jul 2015 17:04:28 +0200 Subject: Gtk3: daemon: Drop unneeded get_preferred_width and GtkWidgetClass --- src/daemon/daemon.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/daemon') diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 5c14aa1..3eac838 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -135,32 +135,12 @@ static void monitor_notification_source_windows(NotifyDaemon* daemon, NotifyTime G_DEFINE_TYPE(NotifyDaemon, notify_daemon, G_TYPE_OBJECT); -#if GTK_CHECK_VERSION (3, 0, 0) -static void -notify_daemon_get_preferred_width (GtkWidget *widget, - gint *min_width, - gint *nat_width) -{ - if (nat_width != NULL) { - *nat_width = WIDTH; - } -} -#endif - static void notify_daemon_class_init(NotifyDaemonClass* daemon_class) { GObjectClass* object_class = G_OBJECT_CLASS(daemon_class); -#if GTK_CHECK_VERSION (3, 0, 0) - GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (daemon_class); -#endif - object_class->finalize = notify_daemon_finalize; -#if GTK_CHECK_VERSION (3, 0, 0) - widget_class->get_preferred_width = notify_daemon_get_preferred_width; -#endif - g_type_class_add_private(daemon_class, sizeof(NotifyDaemonPrivate)); } -- cgit v1.2.1