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.
This commit is contained in:
parent
3cb9dabd95
commit
797ef3f1bd
20
src/about.c
20
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user