diff options
author | Havoc Pennington <hp@redhat.com> | 2002-02-06 22:22:37 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-02-06 22:22:37 +0000 |
commit | e58c6eca328bc42eadab818d9be443be4ff52e25 (patch) | |
tree | 7c06c21647775b33e48d16f0accea81c03e71eff /gtk/gtktextview.c | |
parent | 99b7d4a1894f29ee6617380d4fc0b9b7d98c3033 (diff) | |
download | gtk+-e58c6eca328bc42eadab818d9be443be4ff52e25.tar.gz |
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
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 08f016f5de..6c04881194 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -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; } /** |