diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-12-12 17:08:42 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-12-12 17:08:42 +0000 |
commit | 00c4eaef63a0ae4939e9c59b35dda26c6e2b28b0 (patch) | |
tree | 26645ad1e036acfb7e4f837850524f0598ff45ab /gtk | |
parent | 128bc9f3eabcb80719dc24a29e5c968d7d5cf1f8 (diff) | |
download | gtk+-00c4eaef63a0ae4939e9c59b35dda26c6e2b28b0.tar.gz |
Don't fall thru to the wrong window types. (#323843)
2005-12-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_border_window_size): Don't
fall thru to the wrong window types. (#323843)
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtktextview.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index f0249052ea..7804fcfad6 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -8057,18 +8057,22 @@ gtk_text_view_get_border_window_size (GtkTextView *text_view, case GTK_TEXT_WINDOW_LEFT: if (text_view->left_window) return text_view->left_window->requisition.width; + break; case GTK_TEXT_WINDOW_RIGHT: if (text_view->right_window) return text_view->right_window->requisition.width; + break; case GTK_TEXT_WINDOW_TOP: if (text_view->top_window) return text_view->top_window->requisition.height; + break; case GTK_TEXT_WINDOW_BOTTOM: if (text_view->bottom_window) return text_view->bottom_window->requisition.height; + break; default: g_warning ("Can only get size of left/right/top/bottom border windows with gtk_text_view_get_border_window_size()"); |