From 797ef3f1bd0dd2dea62d912af1340fbeb248e7bb Mon Sep 17 00:00:00 2001 From: Arx Cruz Date: Fri, 16 May 2014 18:05:59 -0300 Subject: Remove deprecated methods. This remove deprecated methods in about dialog. Also remove the help button in the about dialog, since wasn't being used (due the deprecated methods) and keep it just make the UI ugly. --- src/about.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/about.c b/src/about.c index ab82068a..486b6416 100644 --- a/src/about.c +++ b/src/about.c @@ -39,7 +39,6 @@ static GtkWidget *dialog; -static void zenity_about_display_help (GtkWidget *widget, gpointer data); static void zenity_about_dialog_response (GtkWidget *widget, int response, gpointer data); /* Sync with the people in the THANKS file */ @@ -258,7 +257,6 @@ void zenity_about (ZenityData *data) { GdkPixbuf *logo; - GtkWidget *help_button; char *license_trans; @@ -288,18 +286,6 @@ zenity_about (ZenityData *data) zenity_util_set_window_icon (dialog, NULL, ZENITY_IMAGE_FULLPATH ("zenity.png")); - help_button = gtk_button_new_from_stock (GTK_STOCK_HELP); - - g_signal_connect (G_OBJECT (help_button), "clicked", - G_CALLBACK (zenity_about_display_help), data); - - gtk_widget_show (help_button); - - gtk_box_pack_end (GTK_BOX (gtk_dialog_get_action_area (GTK_DIALOG (dialog))), - help_button, FALSE, TRUE, 0); - gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (gtk_dialog_get_action_area (GTK_DIALOG (dialog))), - help_button, TRUE); - g_signal_connect (G_OBJECT (dialog), "response", G_CALLBACK (zenity_about_dialog_response), data); @@ -330,9 +316,3 @@ zenity_about_dialog_response (GtkWidget *widget, int response, gpointer data) gtk_main_quit (); } - -static void -zenity_about_display_help (GtkWidget *widget, gpointer data) -{ - zenity_util_show_help (NULL); -} -- cgit