[krb5-auth-dialog] Remove items moved to ticket dialog
- From: Guido GÃnther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] Remove items moved to ticket dialog
- Date: Tue, 6 Sep 2011 10:36:24 +0000 (UTC)
commit becb3cadc883efcd444b9ffbccdd5ac535062feb
Author: Guido GÃnther <agx sigxcpu org>
Date: Tue Sep 6 10:53:37 2011 +0200
Remove items moved to ticket dialog
src/ka-applet.c | 50 +-------------------------------------------------
1 files changed, 1 insertions(+), 49 deletions(-)
---
diff --git a/src/ka-applet.c b/src/ka-applet.c
index ea1326c..35edfab 100644
--- a/src/ka-applet.c
+++ b/src/ka-applet.c
@@ -687,33 +687,6 @@ ka_applet_menu_add_separator_item (GtkWidget *menu)
gtk_widget_show (menu_item);
}
-static void
-ka_applet_preferences_cb (GtkWidget *menuitem G_GNUC_UNUSED,
- gpointer user_data G_GNUC_UNUSED)
-{
- GError *error = NULL;
-
- g_spawn_command_line_async (BIN_DIR
- G_DIR_SEPARATOR_S
- "gnome-control-center ka-panel", &error);
- if (error) {
- GtkWidget *message_dialog;
-
- message_dialog = gtk_message_dialog_new (NULL,
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE,
- _("There was an error launching the preferences dialog: %s"),
- error->message);
- gtk_window_set_resizable (GTK_WINDOW (message_dialog), FALSE);
-
- g_signal_connect (message_dialog, "response",
- G_CALLBACK (gtk_widget_destroy), NULL);
- gtk_widget_show (message_dialog);
- g_clear_error (&error);
- }
-}
-
/* Free all resources and quit */
static void
@@ -726,14 +699,6 @@ ka_applet_quit_cb (GtkMenuItem *menuitem G_GNUC_UNUSED, gpointer user_data)
static void
-ka_applet_about_dialog_cb (GtkMenuItem *menuitem G_GNUC_UNUSED,
- gpointer user_data G_GNUC_UNUSED)
-{
- ka_show_about();
-}
-
-
-static void
ka_applet_show_help_cb (GtkMenuItem *menuitem G_GNUC_UNUSED,
gpointer user_data)
{
@@ -788,25 +753,12 @@ ka_applet_create_context_menu (KaApplet *applet)
G_CALLBACK (ka_applet_show_tickets_cb), applet);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
- /* Preferences */
- menu_item =
- gtk_image_menu_item_new_from_stock (GTK_STOCK_PREFERENCES, NULL);
- g_signal_connect (G_OBJECT (menu_item), "activate",
- G_CALLBACK (ka_applet_preferences_cb), applet);
- gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
-
- /* About item */
+ /* Help item */
menu_item = gtk_image_menu_item_new_from_stock (GTK_STOCK_HELP, NULL);
g_signal_connect (G_OBJECT (menu_item), "activate",
G_CALLBACK (ka_applet_show_help_cb), applet);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
- /* About item */
- menu_item = gtk_image_menu_item_new_from_stock (GTK_STOCK_ABOUT, NULL);
- g_signal_connect (G_OBJECT (menu_item), "activate",
- G_CALLBACK (ka_applet_about_dialog_cb), applet);
- gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
-
ka_applet_menu_add_separator_item (menu);
/* Quit */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]