summaryrefslogtreecommitdiff
path: root/gtk/gtkdialog.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2000-11-14 01:08:28 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-11-14 01:08:28 +0000
commit73a00eeb447d40a6ed53ac57c482e4d1cb9483f3 (patch)
tree2b047070821790df0a34f712590ece91a64a14b3 /gtk/gtkdialog.c
parentf15049bd0241241c6865d9405a331ef1694ace56 (diff)
downloadgdk-pixbuf-73a00eeb447d40a6ed53ac57c482e4d1cb9483f3.tar.gz
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.
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r--gtk/gtkdialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 2b7ef7307..2c5488111 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -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)));