Commit a959d3da authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington

fix #62365

2001-10-22  Havoc Pennington  <hp@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
	#62365
parent 347da0ea
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
#62365
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_window_type): fix
......
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
#62365
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_window_type): fix
......
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
#62365
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_window_type): fix
......
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
#62365
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_window_type): fix
......
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
#62365
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_window_type): fix
......
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
#62365
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_window_type): fix
......
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
#62365
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_window_type): fix
......
......@@ -6285,25 +6285,27 @@ gtk_text_view_get_border_window_size (GtkTextView *text_view,
GtkTextWindowType type)
{
g_return_val_if_fail (GTK_IS_TEXT_VIEW (text_view), 0);
g_return_val_if_fail (type != GTK_TEXT_WINDOW_WIDGET, 0);
g_return_val_if_fail (type != GTK_TEXT_WINDOW_TEXT, 0);
switch (type)
{
case GTK_TEXT_WINDOW_LEFT:
return text_view->left_window->requisition.width;
if (text_view->left_window)
return text_view->left_window->requisition.width;
case GTK_TEXT_WINDOW_RIGHT:
return text_view->right_window->requisition.width;
if (text_view->right_window)
return text_view->right_window->requisition.width;
case GTK_TEXT_WINDOW_TOP:
return text_view->top_window->requisition.height;
if (text_view->top_window)
return text_view->top_window->requisition.height;
case GTK_TEXT_WINDOW_BOTTOM:
return text_view->bottom_window->requisition.height;
if (text_view->bottom_window)
return text_view->bottom_window->requisition.height;
default:
g_warning ("Can only get size of left/right/top/bottom border windows with gtk_text_view_get_border_window_size in %s\n", G_STRLOC);
g_warning ("Can only get size of left/right/top/bottom border windows with gtk_text_view_get_border_window_size()");
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment