diff options
author | Tim Janik <timj@src.gnome.org> | 2008-06-20 11:10:08 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2008-06-20 11:10:08 +0000 |
commit | 1a13990f6ec282a27eb1e6b23195871f1d854f01 (patch) | |
tree | b043262a6eab407794171c32d8f42bccecba50fd | |
parent | dcbc5d021f975182d75550f407a95a6db93ea1fa (diff) | |
download | gtk+-1a13990f6ec282a27eb1e6b23195871f1d854f01.tar.gz |
Remove unneeded GtkColorSelectionDialog accessors
svn path=/trunk/; revision=20624
-rw-r--r-- | gtk/gtk.symbols | 3 | ||||
-rw-r--r-- | gtk/gtkcolorseldialog.c | 44 | ||||
-rw-r--r-- | gtk/gtkcolorseldialog.h | 3 |
3 files changed, 2 insertions, 48 deletions
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index f0e604149b..d4fd8b4ead 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -830,10 +830,7 @@ gtk_color_selection_set_previous_color #if IN_FILE(__GTK_COLOR_SELECTION_DIALOG_C__) gtk_color_selection_dialog_get_type G_GNUC_CONST gtk_color_selection_dialog_new -gtk_color_selection_dialog_get_cancel_button gtk_color_selection_dialog_get_color_selection -gtk_color_selection_dialog_get_help_button -gtk_color_selection_dialog_get_ok_button #endif #endif diff --git a/gtk/gtkcolorseldialog.c b/gtk/gtkcolorseldialog.c index 356e450b8c..92ac87d9bb 100644 --- a/gtk/gtkcolorseldialog.c +++ b/gtk/gtkcolorseldialog.c @@ -198,49 +198,9 @@ gtk_color_selection_dialog_new (const gchar *title) GtkWidget* gtk_color_selection_dialog_get_color_selection (GtkColorSelectionDialog *colorsel) { - return colorsel->colorsel; -} - -/** - * gtk_color_selection_dialog_get_ok_button: - * @colorsel: a #GtkColorSelectionDialog - * - * Retrieves the OK button of the dialog. - * - * Since: GSEAL-branch - **/ -GtkWidget* -gtk_color_selection_dialog_get_ok_button (GtkColorSelectionDialog *colorsel) -{ - return colorsel->ok_button; -} + g_return_val_if_fail (GTK_IS_COLOR_SELECTION (colorsel), NULL); -/** - * gtk_color_selection_dialog_get_cancel_button: - * @colorsel: a #GtkColorSelectionDialog - * - * Retrieves the cancel button of the dialog. - * - * Since: GSEAL-branch - **/ -GtkWidget* -gtk_color_selection_dialog_get_cancel_button (GtkColorSelectionDialog *colorsel) -{ - return colorsel->cancel_button; -} - -/** - * gtk_color_selection_dialog_get_help_button: - * @colorsel: a #GtkColorSelectionDialog - * - * Retrieves the help button of the dialog. - * - * Since: GSEAL-branch - **/ -GtkWidget* -gtk_color_selection_dialog_get_help_button (GtkColorSelectionDialog *colorsel) -{ - return colorsel->help_button; + return colorsel->colorsel; } static void diff --git a/gtk/gtkcolorseldialog.h b/gtk/gtkcolorseldialog.h index c8a04509a2..395883693a 100644 --- a/gtk/gtkcolorseldialog.h +++ b/gtk/gtkcolorseldialog.h @@ -75,9 +75,6 @@ struct _GtkColorSelectionDialogClass GType gtk_color_selection_dialog_get_type (void) G_GNUC_CONST; GtkWidget* gtk_color_selection_dialog_new (const gchar *title); GtkWidget* gtk_color_selection_dialog_get_color_selection (GtkColorSelectionDialog *colorsel); -GtkWidget* gtk_color_selection_dialog_get_ok_button (GtkColorSelectionDialog *colorsel); -GtkWidget* gtk_color_selection_dialog_get_cancel_button (GtkColorSelectionDialog *colorsel); -GtkWidget* gtk_color_selection_dialog_get_help_button (GtkColorSelectionDialog *colorsel); G_END_DECLS |