summaryrefslogtreecommitdiff
path: root/applets/clock/clock.c
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2023-05-17 06:56:21 +0300
committerGitHub <[email protected]>2023-05-17 03:56:21 +0000
commit277418cea7b011520df9759301d416cd51709564 (patch)
tree11b412b6aab737b8f22146ca67deac3e56737044 /applets/clock/clock.c
parent1a16bc12de9b45637445ca53ec81cfe0a26c831f (diff)
downloadmate-panel-277418cea7b011520df9759301d416cd51709564.tar.bz2
mate-panel-277418cea7b011520df9759301d416cd51709564.tar.xz
tell dconf-edit about relocatable schemas (#1355)
* tell dconf-edit about relocatable schemas * self fix for incorrect and duplicated records remove duplicated schemas for currect path remove incorrect schemas for current path * remove clock applet hack * expose mate_panel_applet_settings_new to introspection add "transfer full" annotation to make this method available throught introspection
Diffstat (limited to 'applets/clock/clock.c')
-rw-r--r--applets/clock/clock.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index 0ee49628..7a11f0e9 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -2411,18 +2411,8 @@ show_week_changed (GSettings *settings,
static void
setup_gsettings (ClockData *cd)
{
- gint format;
- gchar *custom_format;
-
cd->settings = mate_panel_applet_settings_new (MATE_PANEL_APPLET (cd->applet), CLOCK_SCHEMA);
- /* hack to allow users to set custom format in dconf-editor */
- format = g_settings_get_enum (cd->settings, KEY_FORMAT);
- custom_format = g_settings_get_string (cd->settings, KEY_CUSTOM_FORMAT);
- g_settings_set_enum (cd->settings, KEY_FORMAT, format);
- g_settings_set_string (cd->settings, KEY_CUSTOM_FORMAT, custom_format);
- g_free (custom_format);
-
g_signal_connect (cd->settings, "changed::" KEY_FORMAT, G_CALLBACK (format_changed), cd);
g_signal_connect (cd->settings, "changed::" KEY_SHOW_SECONDS, G_CALLBACK (show_seconds_changed), cd);
g_signal_connect (cd->settings, "changed::" KEY_SHOW_DATE, G_CALLBACK (show_date_changed), cd);