mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
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)
This commit is contained in:
parent
128bc9f3ea
commit
00c4eaef63
@ -1,5 +1,8 @@
|
||||
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)
|
||||
|
||||
Make the gtk-color-scheme setting work.
|
||||
|
||||
* gtk/gtksettings.h:
|
||||
|
@ -1,5 +1,8 @@
|
||||
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)
|
||||
|
||||
Make the gtk-color-scheme setting work.
|
||||
|
||||
* gtk/gtksettings.h:
|
||||
|
@ -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()");
|
||||
|
Loading…
Reference in New Issue
Block a user