summaryrefslogtreecommitdiff
path: root/src/capplet/mate-notification-applet.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-08-16 18:54:49 -0400
committerraveit65 <[email protected]>2023-08-18 21:13:32 +0200
commit1ee57c16a495e5908052d1de3de139fe6a8387bc (patch)
treea09f2fbde3ee1a811c218321716c4fb8ab0ae45f /src/capplet/mate-notification-applet.c
parent8243a01d5755213af68025885531e381a6995928 (diff)
downloadmate-notification-daemon-1ee57c16a495e5908052d1de3de139fe6a8387bc.tar.bz2
mate-notification-daemon-1ee57c16a495e5908052d1de3de139fe6a8387bc.tar.xz
Wayland: Allow building do not disturb applet in process
Diffstat (limited to 'src/capplet/mate-notification-applet.c')
-rw-r--r--src/capplet/mate-notification-applet.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/capplet/mate-notification-applet.c b/src/capplet/mate-notification-applet.c
index 95aef37..b76cf29 100644
--- a/src/capplet/mate-notification-applet.c
+++ b/src/capplet/mate-notification-applet.c
@@ -173,16 +173,19 @@ applet_main (MatePanelApplet *applet_widget)
textdomain (GETTEXT_PACKAGE);
#endif /* ENABLE_NLS */
+#ifndef ENABLE_IN_PROCESS
g_set_application_name (_("Do Not Disturb"));
+#endif
gtk_window_set_default_icon_name ("mate-notification-properties");
applet = g_new (MateNotificationApplet, 1);
applet->applet = applet_widget;
applet->settings = g_settings_new (GSETTINGS_SCHEMA);
+#ifndef ENABLE_IN_PROCESS
/* needed to clamp ourselves to the panel size */
mate_panel_applet_set_flags (MATE_PANEL_APPLET (applet), MATE_PANEL_APPLET_EXPAND_MINOR);
-
+#endif
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
applet->image_on = gtk_image_new ();
@@ -257,7 +260,7 @@ applet_factory (MatePanelApplet *applet_widget,
return FALSE;
}
-MATE_PANEL_APPLET_OUT_PROCESS_FACTORY ("MateNotificationAppletFactory",
+PANEL_APPLET_FACTORY ("MateNotificationAppletFactory",
PANEL_TYPE_APPLET,
"Do Not Disturb Applet",
applet_factory,