summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-05 21:03:45 +0300
committermonsta <[email protected]>2016-01-05 21:04:22 +0300
commitef9fc6fad88088ee3b0b769b188aaead9d8f6aeb (patch)
treef50ba37cee50e68fa59cf366f78793ea49cc931c
parent77a5983ee656a638e688ae42c7efc7aeddf0e262 (diff)
downloadmate-panel-ef9fc6fad88088ee3b0b769b188aaead9d8f6aeb.tar.bz2
mate-panel-ef9fc6fad88088ee3b0b769b188aaead9d8f6aeb.tar.xz
profile: simplify a couple of functions
-rw-r--r--mate-panel/panel-profile.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/mate-panel/panel-profile.c b/mate-panel/panel-profile.c
index e0228403..e8707e45 100644
--- a/mate-panel/panel-profile.c
+++ b/mate-panel/panel-profile.c
@@ -368,9 +368,7 @@ panel_profile_set_background_image (PanelToplevel *toplevel,
char *
panel_profile_get_background_image (PanelToplevel *toplevel)
{
- char *retval;
- retval = g_settings_get_string (toplevel->background_settings, "image");
- return retval;
+ return g_settings_get_string (toplevel->background_settings, "image");
}
void
@@ -386,9 +384,7 @@ panel_profile_set_toplevel_name (PanelToplevel *toplevel,
char *
panel_profile_get_toplevel_name (PanelToplevel *toplevel)
{
- char *retval;
- retval = g_settings_get_string (toplevel->settings, "name");
- return retval;
+ return g_settings_get_string (toplevel->settings, "name");
}
void