fix bug where GC didn't always get updated properly
2000-11-13 Havoc Pennington <hp@redhat.com> * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug where GC didn't always get updated properly * demos/gtk-demo/textview.c (create_tags): Use subattributes of fonts instead of setting the entire font * gtk/testtext.c (fill_example_buffer): Use "size" instead of setting entire font * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into a bunch of individually-settable font attributes. You can still use the "font" and "font_desc" args, they just set all the font attributes at once.
This commit is contained in:
committed by
Havoc Pennington
parent
f15049bd02
commit
73a00eeb44
@ -387,8 +387,8 @@ gtk_dialog_add_button (GtkDialog *dialog,
|
||||
{
|
||||
GtkWidget *button;
|
||||
|
||||
g_return_if_fail (GTK_IS_DIALOG (dialog));
|
||||
g_return_if_fail (button_text != NULL);
|
||||
g_return_val_if_fail (GTK_IS_DIALOG (dialog), NULL);
|
||||
g_return_val_if_fail (button_text != NULL, NULL);
|
||||
|
||||
button = gtk_button_new_stock (button_text,
|
||||
gtk_window_get_default_accel_group (GTK_WINDOW (dialog)));
|
||||
|
||||
Reference in New Issue
Block a user