diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-01-29 20:53:17 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-01-29 20:53:17 +0000 |
commit | 833b99fca20b8097d4fe0f9c3ac436d7bec0c548 (patch) | |
tree | 0a41e1a01ee553e269367662b98bdbdca812e31a /gtk/gtkgamma.c | |
parent | 53ca71377d0a812b0aa81346f7001d680e5f135a (diff) | |
download | gtk+-833b99fca20b8097d4fe0f9c3ac436d7bec0c548.tar.gz |
Switch over to GtkTreeView from GtkCList. Remove the entries above the
Tue Jan 29 15:24:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.[ch]: Switch over to GtkTreeView from
GtkCList. Remove the entries above the font/face lists
since they were a little confusing. (Not sure about this
change, so the code is still there the entries are
just hidden.) (#68890)
* gtk/gtkfilesel.c: Switch over to GtkTreeView from
GtkCList. Add mnemonics for fileops. Allow Control/Shift
Tab to focus out.
* gtk/gtkfilesel.c: Make fileop dialogs transient-for
the fileselector. (#69336, patch from Melvin Hadasht)
* gtk/gtkgamma.c (button_clicked_callback): Fix handling
of gamma dialog a bit. (#69336, Matthias Clasen.)
Diffstat (limited to 'gtk/gtkgamma.c')
-rw-r--r-- | gtk/gtkgamma.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkgamma.c b/gtk/gtkgamma.c index 25b514894e..ac52809dd5 100644 --- a/gtk/gtkgamma.c +++ b/gtk/gtkgamma.c @@ -353,7 +353,6 @@ gamma_cancel_callback (GtkWidget *w, gpointer data) GtkGammaCurve *c = data; gtk_widget_destroy (c->gamma_dialog); - c->gamma_dialog = 0; } static void @@ -394,6 +393,9 @@ button_clicked_callback (GtkWidget *w, gpointer data) c->gamma_dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (c->gamma_dialog), _("Gamma")); + g_object_add_weak_pointer (G_OBJECT (c->gamma_dialog), + (gpointer *)&c->gamma_dialog); + vbox = GTK_DIALOG (c->gamma_dialog)->vbox; hbox = gtk_hbox_new (/* homogeneous */ FALSE, 0); |