summaryrefslogtreecommitdiff
path: root/timerapplet/src/timerapplet.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-06-20 03:28:58 -0400
committerraveit65 <[email protected]>2023-07-17 02:47:28 +0200
commite6c5401a285e188b00c6d13e7b53d30ef6a6fe5f (patch)
tree182221b5bbd35767084996c2c2c47a092d8bd03a /timerapplet/src/timerapplet.c
parent6dd9ab19ab5a72c203dab7c2c96277f77e222260 (diff)
downloadmate-applets-e6c5401a285e188b00c6d13e7b53d30ef6a6fe5f.tar.bz2
mate-applets-e6c5401a285e188b00c6d13e7b53d30ef6a6fe5f.tar.xz
timerapplet: port to in-process for wayland
Diffstat (limited to 'timerapplet/src/timerapplet.c')
-rw-r--r--timerapplet/src/timerapplet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/timerapplet/src/timerapplet.c b/timerapplet/src/timerapplet.c
index 8399ebb0..f2fcfc1e 100644
--- a/timerapplet/src/timerapplet.c
+++ b/timerapplet/src/timerapplet.c
@@ -125,6 +125,9 @@ timer_callback (TimerApplet *applet)
label = NULL;
tooltip = NULL;
+ if (!GTK_IS_WIDGET (applet->label))
+ return FALSE;
+
name = g_settings_get_string (applet->settings, NAME_KEY);
atk_obj = gtk_widget_get_accessible (GTK_WIDGET (applet->applet));
@@ -373,7 +376,6 @@ timer_applet_fill (MatePanelApplet* applet_widget)
TimerApplet *applet;
AtkObject *atk_obj;
- g_set_application_name (_("Timer Applet"));
gtk_window_set_default_icon_name (APPLET_ICON);
if (!notify_is_initted ())
@@ -454,7 +456,7 @@ timer_factory (MatePanelApplet* applet, const char* iid, gpointer data)
}
/* needed by mate-panel applet library */
-MATE_PANEL_APPLET_OUT_PROCESS_FACTORY("TimerAppletFactory",
+MATE_PANEL_APPLET_IN_PROCESS_FACTORY("TimerAppletFactory",
PANEL_TYPE_APPLET,
"Timer applet",
timer_factory,