summaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-24 17:04:28 +0200
committerinfirit <[email protected]>2015-07-24 17:17:32 +0200
commit2296eaf57e3f07f6f19ab884e3206155ba3ea8a8 (patch)
treecbcef2a8f499e83b4c334dc33086a074fa60743b /src/daemon
parentb9f955af51146ae361478fc6d06315ca2c62e99f (diff)
downloadmate-notification-daemon-2296eaf57e3f07f6f19ab884e3206155ba3ea8a8.tar.bz2
mate-notification-daemon-2296eaf57e3f07f6f19ab884e3206155ba3ea8a8.tar.xz
Gtk3: daemon: Drop unneeded get_preferred_width and GtkWidgetClass
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/daemon.c20
1 files changed, 0 insertions, 20 deletions
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));
}