Commit aa4a41fa authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Reset style attributes even if the widget isn't realized.

Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_style_set): Reset
	style attributes even if the widget isn't realized.

	* demos/gtk-demo/main.c: Use a slightly smaller font.
parent 50512ddc
Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c (gtk_text_view_style_set): Reset
style attributes even if the widget isn't realized.
* demos/gtk-demo/main.c: Use a slightly smaller font.
Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcontainer.c: Remove reallocate-redraws property.
......
Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c (gtk_text_view_style_set): Reset
style attributes even if the widget isn't realized.
* demos/gtk-demo/main.c: Use a slightly smaller font.
Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcontainer.c: Remove reallocate-redraws property.
......
Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c (gtk_text_view_style_set): Reset
style attributes even if the widget isn't realized.
* demos/gtk-demo/main.c: Use a slightly smaller font.
Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcontainer.c: Remove reallocate-redraws property.
......
Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c (gtk_text_view_style_set): Reset
style attributes even if the widget isn't realized.
* demos/gtk-demo/main.c: Use a slightly smaller font.
Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcontainer.c: Remove reallocate-redraws property.
......
Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c (gtk_text_view_style_set): Reset
style attributes even if the widget isn't realized.
* demos/gtk-demo/main.c: Use a slightly smaller font.
Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcontainer.c: Remove reallocate-redraws property.
......
Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c (gtk_text_view_style_set): Reset
style attributes even if the widget isn't realized.
* demos/gtk-demo/main.c: Use a slightly smaller font.
Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcontainer.c: Remove reallocate-redraws property.
......
Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c (gtk_text_view_style_set): Reset
style attributes even if the widget isn't realized.
* demos/gtk-demo/main.c: Use a slightly smaller font.
Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcontainer.c: Remove reallocate-redraws property.
......
......@@ -646,7 +646,7 @@ create_text (GtkTextBuffer **buffer,
if (is_source)
{
font_desc = pango_font_description_from_string ("Courier 14");
font_desc = pango_font_description_from_string ("Courier 12");
gtk_widget_modify_font (text_view, font_desc);
pango_font_description_free (font_desc);
......
......@@ -1019,6 +1019,14 @@ Get the type of GtkIdentifier.
@Returns: GtkType -- the enumerated type of something.
<!-- ##### FUNCTION gtk_image_menu_item_add_image ##### -->
<para>
</para>
@image_menu_item:
@child:
<!-- ##### FUNCTION gtk_label_set_markup_with_accel ##### -->
<para>
......
......@@ -27,15 +27,6 @@ GtkImageMenuItem
</para>
<!-- ##### FUNCTION gtk_image_menu_item_add_image ##### -->
<para>
</para>
@image_menu_item:
@child:
<!-- ##### FUNCTION gtk_image_menu_item_get_image ##### -->
<para>
......@@ -58,9 +49,10 @@ GtkImageMenuItem
</para>
@Returns:
<!-- # Unused Parameters # -->
@widget:
@label:
@Returns:
<!-- ##### FUNCTION gtk_image_menu_item_new_from_stock ##### -->
......
......@@ -2792,7 +2792,10 @@ gtk_text_view_style_set (GtkWidget *widget,
if (text_view->bottom_window)
gdk_window_set_background (text_view->bottom_window->bin_window,
&widget->style->bg[GTK_WIDGET_STATE (widget)]);
}
if (text_view->layout && previous_style)
{
gtk_text_view_set_attributes_from_style (text_view,
text_view->layout->default_style,
widget->style);
......
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