[gnome-control-center] display: hide and unref the screen label when destroyed
- From: Thomas Wood <thos src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] display: hide and unref the screen label when destroyed
- Date: Mon, 12 Jul 2010 17:49:06 +0000 (UTC)
commit 844a957ade350b1971cb49902eb0685b5098c65c
Author: Thomas Wood <thomas wood intel com>
Date: Mon Jul 12 16:46:15 2010 +0100
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 ab6a79c..227f5d1 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 72251f3..ebbeb5e 100644
--- a/panels/display/xrandr-capplet.h
+++ b/panels/display/xrandr-capplet.h
@@ -1,3 +1,3 @@
-GtkWidget* run_application ();
+GtkWidget* run_application (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]