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.
This commit is contained in:
Owen Taylor 2001-05-18 20:56:55 +00:00 committed by Owen Taylor
parent 50512ddcd2
commit aa4a41face
11 changed files with 63 additions and 11 deletions

View File

@ -1,3 +1,10 @@
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.

View File

@ -1,3 +1,10 @@
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.

View File

@ -1,3 +1,10 @@
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.

View File

@ -1,3 +1,10 @@
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.

View File

@ -1,3 +1,10 @@
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.

View File

@ -1,3 +1,10 @@
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.

View File

@ -1,3 +1,10 @@
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.

View File

@ -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);

View File

@ -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>

View File

@ -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 ##### -->

View File

@ -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);