From ec9a50e1473288030dd807769e29caa7192ebd23 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sun, 7 Apr 2013 11:52:02 +0200 Subject: Fix MateConf convert file --- data/mate-panel.convert | 2 -- 1 file changed, 2 deletions(-) diff --git a/data/mate-panel.convert b/data/mate-panel.convert index 48a236e5..93dcc7cd 100644 --- a/data/mate-panel.convert +++ b/data/mate-panel.convert @@ -2,8 +2,6 @@ enable-program-list = /apps/panel/general/enable_program_list show-program-list = /apps/panel/general/show_program_list enable-autocompletion = /apps/panel/general/enable_autocompletion -toplevel-id-list = /apps/panel/general/toplevel_id_list -object-id-list = /apps/panel/general/object_id_list tooltips-enabled = /apps/panel/global/tooltips_enabled enable-animations = /apps/panel/global/enable_animations drawer-autoclose = /apps/panel/global/drawer_autoclose -- cgit v1.2.1 From 9d78b6e1d2cd8cd437c1694da6e6642c99cc498a Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Mon, 8 Apr 2013 16:02:53 +0200 Subject: Fix panels issue when user has two separate X screens Closes https://github.com/mate-desktop/mate-panel/issues/87 Closes https://github.com/mate-desktop/mate-panel/issues/89 --- mate-panel/panel-layout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mate-panel/panel-layout.c b/mate-panel/panel-layout.c index d86bcd39..47324208 100644 --- a/mate-panel/panel-layout.c +++ b/mate-panel/panel-layout.c @@ -118,7 +118,7 @@ panel_layout_append_group_helper (GKeyFile *keyfile, const char *type_for_error_message) { gboolean retval = FALSE; - const char *id; + char *id; char *unique_id = NULL; char *path = NULL; GSettings *settings = NULL; @@ -162,6 +162,9 @@ panel_layout_append_group_helper (GKeyFile *keyfile, existing_ids = panel_dconf_list_subdirs (dconf_path, TRUE); if (id) { + if (set_screen_to > 0) { + id = g_strdup_printf ("%s-screen%d", id, set_screen_to); + } for (i = 0; existing_ids[i]; i++) { if (!strcmp (existing_ids[i], id)) { existing_id = TRUE; -- cgit v1.2.1 From f4a927c268231fdd6b5a333d0c547b46a11af858 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Mon, 8 Apr 2013 16:07:33 +0200 Subject: clock: Allow users to set custom format in dconf-editor --- applets/clock/clock.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/applets/clock/clock.c b/applets/clock/clock.c index 44b844e8..bcbf847d 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -2264,6 +2264,17 @@ static void setup_gsettings (ClockData *cd) { 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 */ + gint format; + gchar *custom_format; + 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); + if (custom_format != NULL) + 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); -- cgit v1.2.1