Fix some compiler warnings.

2007-01-04  Matthias Clasen  <mclasen@redhat.com>

        * demos/gtk-demo/textscroll.c:
        * gtk/gtkhandlebox.c:
        * gtk/gtkcolorsel.c: Fix some compiler warnings.



svn path=/trunk/; revision=17063
This commit is contained in:
Matthias Clasen 2007-01-04 14:47:29 +00:00 committed by Matthias Clasen
parent 6fb261bbad
commit 0bf8e61f8a
3 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2007-01-04 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/textscroll.c:
* gtk/gtkhandlebox.c:
* gtk/gtkcolorsel.c: Fix some compiler warnings.
2007-01-03 Matthias Clasen <mclasen@redhat.com>

View File

@ -109,7 +109,6 @@ setup_scroll (GtkTextView *textview,
{
GtkTextBuffer *buffer;
GtkTextIter iter;
GtkTextMark *mark;
buffer = gtk_text_view_get_buffer (textview);
gtk_text_buffer_get_end_iter (buffer, &iter);
@ -179,7 +178,6 @@ do_textscroll (GtkWidget *do_widget)
if (!window)
{
GtkWidget *hbox;
GtkWidget *swindow;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_signal_connect (window, "destroy",

View File

@ -923,6 +923,9 @@ gtk_handle_box_paint (GtkWidget *widget,
rect.height = DRAG_HANDLE_SIZE;
handle_orientation = GTK_ORIENTATION_HORIZONTAL;
break;
default:
g_assert_not_reached ();
break;
}
if (gdk_rectangle_intersect (event ? &event->area : area, &rect, &dest))