summaryrefslogtreecommitdiff
path: root/mate-panel/panel.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-10-11 00:01:30 +0200
committerStefano Karapetsas <[email protected]>2012-10-11 00:01:30 +0200
commit876f39364e2106c8cb96fa4a9067359e5a350583 (patch)
tree2936001f23a62397065495e3fd065cb260eff4d7 /mate-panel/panel.c
parent66916b20f16f9f0aad4c527519b70ac3a72bbec7 (diff)
downloadmate-panel-876f39364e2106c8cb96fa4a9067359e5a350583.tar.bz2
mate-panel-876f39364e2106c8cb96fa4a9067359e5a350583.tar.xz
migrate mate-panel to gsettings
Diffstat (limited to 'mate-panel/panel.c')
-rw-r--r--mate-panel/panel.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/mate-panel/panel.c b/mate-panel/panel.c
index 5f2a9666..c3a5a8ab 100644
--- a/mate-panel/panel.c
+++ b/mate-panel/panel.c
@@ -30,13 +30,11 @@
#include "panel-context-menu.h"
#include "panel-util.h"
#include "panel-config-global.h"
-#include "panel-mateconf.h"
#include "panel-profile.h"
#include "mate-panel-applet-frame.h"
#include "panel-action-button.h"
#include "panel-menu-bar.h"
#include "panel-separator.h"
-#include "panel-compatibility.h"
#include "panel-multiscreen.h"
#include "panel-toplevel.h"
#include "panel-menu-button.h"
@@ -407,8 +405,8 @@ set_background_image_from_uri (PanelToplevel *toplevel,
{
char *image;
- if ( ! panel_profile_is_writable_background_type (toplevel) ||
- ! panel_profile_is_writable_background_image (toplevel))
+ if ( ! panel_profile_background_key_is_writable (toplevel, "type") ||
+ ! panel_profile_background_key_is_writable (toplevel, "image"))
return FALSE;
if (!(image = g_filename_from_uri (uri, NULL, NULL)))
@@ -431,8 +429,8 @@ set_background_color (PanelToplevel *toplevel,
if (!dropped)
return FALSE;
- if ( ! panel_profile_is_writable_background_type (toplevel) ||
- ! panel_profile_is_writable_background_color (toplevel))
+ if ( ! panel_profile_background_key_is_writable (toplevel, "color") ||
+ ! panel_profile_background_key_is_writable (toplevel, "type"))
return FALSE;
color.gdk.red = dropped [0];
@@ -1086,7 +1084,7 @@ panel_receive_dnd_data (PanelWidget *panel,
success = set_background_image_from_uri (panel->toplevel, (char *) data);
break;
case TARGET_BACKGROUND_RESET:
- if (panel_profile_is_writable_background_type (panel->toplevel)) {
+ if (panel_profile_background_key_is_writable (panel->toplevel, "type")) {
panel_profile_set_background_type (panel->toplevel, PANEL_BACK_NONE);
success = TRUE;
} else {