From 844a957ade350b1971cb49902eb0685b5098c65c Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Mon, 12 Jul 2010 16:46:15 +0100 Subject: [PATCH] display: hide and unref the screen label when destroyed Make sure the screen label is not left visible after the panel has been destroyed. --- panels/display/xrandr-capplet.c | 4 +++- panels/display/xrandr-capplet.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/panels/display/xrandr-capplet.c b/panels/display/xrandr-capplet.c index ab6a79c6d..227f5d1c0 100644 --- a/panels/display/xrandr-capplet.c +++ b/panels/display/xrandr-capplet.c @@ -2377,12 +2377,14 @@ destroy_app (App *app) gnome_rr_screen_destroy (app->screen); g_object_unref (app->client); g_object_unref (app->builder); + gnome_rr_labeler_hide (app->labeler); + g_object_unref (app->labeler); g_free (app); } GtkWidget* -run_application () +run_application (void) { #ifndef UIDIR #define UIDIR "." diff --git a/panels/display/xrandr-capplet.h b/panels/display/xrandr-capplet.h index 72251f3f0..ebbeb5ed7 100644 --- a/panels/display/xrandr-capplet.h +++ b/panels/display/xrandr-capplet.h @@ -1,3 +1,3 @@ -GtkWidget* run_application (); +GtkWidget* run_application (void);