[gnome-terminal] widgets: Use the cleanup attribute to clean up
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] widgets: Use the cleanup attribute to clean up
- Date: Wed, 23 Oct 2013 21:46:41 +0000 (UTC)
commit 7bfc7cdd32af8329cfd968e0e0c9ed1524827b4d
Author: Christian Persch <chpe gnome org>
Date: Mon Oct 21 17:55:46 2013 +0200
widgets: Use the cleanup attribute to clean up
src/terminal-close-button.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/terminal-close-button.c b/src/terminal-close-button.c
index 25d7347..0192fcd 100644
--- a/src/terminal-close-button.c
+++ b/src/terminal-close-button.c
@@ -21,6 +21,7 @@
#include <config.h>
#include "terminal-close-button.h"
+#include "terminal-libgsystem.h"
struct _TerminalCloseButtonClassPrivate {
GtkCssProvider *css;
@@ -53,11 +54,10 @@ terminal_close_button_init (TerminalCloseButton *button)
{
GtkWidget *image;
GtkStyleContext *context;
- GIcon *icon;
+ gs_unref_object GIcon *icon;
icon = g_themed_icon_new_with_default_fallbacks ("window-close-symbolic");
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
- g_object_unref (icon);
gtk_widget_show (image);
gtk_container_add (GTK_CONTAINER (button), image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]