[gtk+] Silence a warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Silence a warning
- Date: Fri, 17 Jun 2011 03:36:03 +0000 (UTC)
commit 04ce0467ab5539c4f626cc10ae4b0ca21fe149b7
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jun 16 23:18:03 2011 -0400
Silence a warning
gtk/gtkinfobar.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 70ed734..87f6d3b 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -516,6 +516,7 @@ gtk_info_bar_style_updated (GtkWidget *widget)
static void
gtk_info_bar_init (GtkInfoBar *info_bar)
{
+ GtkWidget *widget = GTK_WIDGET (info_bar);
GtkWidget *content_area;
GtkWidget *action_area;
@@ -534,14 +535,15 @@ gtk_info_bar_init (GtkInfoBar *info_bar)
gtk_button_box_set_layout (GTK_BUTTON_BOX (action_area), GTK_BUTTONBOX_END);
gtk_box_pack_start (GTK_BOX (info_bar), action_area, FALSE, TRUE, 0);
- gtk_widget_set_app_paintable (GTK_WIDGET (info_bar), TRUE);
- gtk_widget_set_redraw_on_allocate (GTK_WIDGET (info_bar), TRUE);
+ gtk_widget_set_app_paintable (widget, TRUE);
+ gtk_widget_set_redraw_on_allocate (widget, TRUE);
info_bar->priv->content_area = content_area;
info_bar->priv->action_area = action_area;
gtk_widget_pop_composite_child ();
- gtk_info_bar_style_updated (info_bar);
+
+ gtk_info_bar_style_updated (widget);
}
static GtkBuildableIface *parent_buildable_iface;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]