summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@gnome.org>2014-05-16 18:05:59 -0300
committerArx Cruz <arxcruz@gnome.org>2014-05-16 18:06:21 -0300
commit797ef3f1bd0dd2dea62d912af1340fbeb248e7bb (patch)
tree89c6ecaf196d3fc92428d76e6dd943e417944b5b
parent3cb9dabd95198b84589fbed31eb215b6a14fb702 (diff)
downloadzenity-797ef3f1bd0dd2dea62d912af1340fbeb248e7bb.tar.gz
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.
-rw-r--r--src/about.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/about.c b/src/about.c
index ab82068..486b641 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);
-}