diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-01-23 21:50:39 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-01-23 21:51:38 -0500 |
commit | d9fcc4c630f3668dd014c258c2deb22d61e438d0 (patch) | |
tree | 8b08e3e470f98aaa23173d19a6ab99fc4d12691d /gtk/gtkseparator.c | |
parent | 94c4a312c1eceb352dea1895f868f9943735e1aa (diff) | |
download | gtk+-d9fcc4c630f3668dd014c258c2deb22d61e438d0.tar.gz |
Silence new gcc warnings
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
Diffstat (limited to 'gtk/gtkseparator.c')
-rw-r--r-- | gtk/gtkseparator.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/gtkseparator.c b/gtk/gtkseparator.c index b48535f7ac..fda69535ea 100644 --- a/gtk/gtkseparator.c +++ b/gtk/gtkseparator.c @@ -210,15 +210,14 @@ gtk_separator_get_preferred_height (GtkWidget *widget, } static gboolean -gtk_separator_draw (GtkWidget *widget, - cairo_t *cr) +gtk_separator_draw (GtkWidget *widget, + cairo_t *cr) { GtkSeparator *separator = GTK_SEPARATOR (widget); GtkSeparatorPrivate *private = separator->priv; GtkStateFlags state; GtkStyleContext *context; GtkBorder padding; - GdkWindow *window; gboolean wide_separators; gint separator_width; gint separator_height; @@ -231,7 +230,6 @@ gtk_separator_draw (GtkWidget *widget, "separator-height", &separator_height, NULL); - window = gtk_widget_get_window (widget); state = gtk_widget_get_state_flags (widget); width = gtk_widget_get_allocated_width (widget); height = gtk_widget_get_allocated_height (widget); @@ -276,7 +274,7 @@ gtk_separator_draw (GtkWidget *widget, * Return value: a new #GtkSeparator. * * Since: 3.0 - **/ + */ GtkWidget * gtk_separator_new (GtkOrientation orientation) { |