mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
remove unused variable (gtk_text_view_get_window): add warning about how
2002-02-06 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable (gtk_text_view_get_window): add warning about how you can't get the private window. #70683, and avoid default: in the switch so we get "enum value unhandled" warnings
This commit is contained in:
parent
99b7d4a189
commit
e58c6eca32
@ -1,3 +1,10 @@
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
|
||||
(gtk_text_view_get_window): add warning about how you
|
||||
can't get the private window. #70683, and avoid default: in the
|
||||
switch so we get "enum value unhandled" warnings
|
||||
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextchild.c: Add warnings if you try to use a child
|
||||
|
@ -1,3 +1,10 @@
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
|
||||
(gtk_text_view_get_window): add warning about how you
|
||||
can't get the private window. #70683, and avoid default: in the
|
||||
switch so we get "enum value unhandled" warnings
|
||||
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextchild.c: Add warnings if you try to use a child
|
||||
|
@ -1,3 +1,10 @@
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
|
||||
(gtk_text_view_get_window): add warning about how you
|
||||
can't get the private window. #70683, and avoid default: in the
|
||||
switch so we get "enum value unhandled" warnings
|
||||
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextchild.c: Add warnings if you try to use a child
|
||||
|
@ -1,3 +1,10 @@
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
|
||||
(gtk_text_view_get_window): add warning about how you
|
||||
can't get the private window. #70683, and avoid default: in the
|
||||
switch so we get "enum value unhandled" warnings
|
||||
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextchild.c: Add warnings if you try to use a child
|
||||
|
@ -1,3 +1,10 @@
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
|
||||
(gtk_text_view_get_window): add warning about how you
|
||||
can't get the private window. #70683, and avoid default: in the
|
||||
switch so we get "enum value unhandled" warnings
|
||||
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextchild.c: Add warnings if you try to use a child
|
||||
|
@ -1,3 +1,10 @@
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
|
||||
(gtk_text_view_get_window): add warning about how you
|
||||
can't get the private window. #70683, and avoid default: in the
|
||||
switch so we get "enum value unhandled" warnings
|
||||
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextchild.c: Add warnings if you try to use a child
|
||||
|
@ -1,3 +1,10 @@
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
|
||||
(gtk_text_view_get_window): add warning about how you
|
||||
can't get the private window. #70683, and avoid default: in the
|
||||
switch so we get "enum value unhandled" warnings
|
||||
|
||||
2002-02-06 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextchild.c: Add warnings if you try to use a child
|
||||
|
@ -4704,7 +4704,6 @@ gtk_text_view_scroll_hpages (GtkTextView *text_view,
|
||||
gint cursor_x_pos, cursor_y_pos;
|
||||
GtkTextIter new_insert;
|
||||
gint y, height;
|
||||
gint x, width;
|
||||
|
||||
g_return_if_fail (text_view->hadjustment != NULL);
|
||||
|
||||
@ -6695,11 +6694,14 @@ gtk_text_view_get_window (GtkTextView *text_view,
|
||||
return NULL;
|
||||
break;
|
||||
|
||||
default:
|
||||
g_warning ("%s: Unknown GtkTextWindowType", G_STRLOC);
|
||||
case GTK_TEXT_WINDOW_PRIVATE:
|
||||
g_warning ("%s: You can't get GTK_TEXT_WINDOW_PRIVATE, it has \"PRIVATE\" in the name because it is private.", __FUNCTION__);
|
||||
return NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
g_warning ("%s: Unknown GtkTextWindowType", __FUNCTION__);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user