diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-05-22 08:30:34 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-05-22 08:32:48 -0400 |
commit | 39ccbe6549971afd09ce5483638ea84840bf2e21 (patch) | |
tree | a2d7c785781cdd0cc0683e88f341fa7401fcb75c /tests/teststatusicon.c | |
parent | bd5414addb9f6f78920dfdf9bd9619f2311661d3 (diff) | |
download | gtk+-39ccbe6549971afd09ce5483638ea84840bf2e21.tar.gz |
tests: Drop manual property editor
No need for this anymore, now that we have the inspector everywhere.
Diffstat (limited to 'tests/teststatusicon.c')
-rwxr-xr-x | tests/teststatusicon.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/teststatusicon.c b/tests/teststatusicon.c index 660e326de9..cacfc20b26 100755 --- a/tests/teststatusicon.c +++ b/tests/teststatusicon.c @@ -22,8 +22,6 @@ #include <gtk/gtk.h> #include <stdlib.h> -#include "prop-editor.h" - typedef enum { TEST_STATUS_INFO, @@ -179,20 +177,6 @@ icon_activated (GtkStatusIcon *icon) } static void -do_properties (GtkMenuItem *item, - GtkStatusIcon *icon) -{ - static GtkWidget *editor = NULL; - - if (editor == NULL) { - editor = create_prop_editor (G_OBJECT (icon), GTK_TYPE_STATUS_ICON); - g_signal_connect (editor, "destroy", G_CALLBACK (gtk_widget_destroyed), &editor); - } - - gtk_window_present (GTK_WINDOW (editor)); -} - -static void do_quit (GtkMenuItem *item) { GSList *l; @@ -229,13 +213,6 @@ popup_menu (GtkStatusIcon *icon, gtk_menu_set_screen (GTK_MENU (menu), gtk_status_icon_get_screen (icon)); - menuitem = gtk_menu_item_new_with_mnemonic ("_Properties"); - g_signal_connect (menuitem, "activate", G_CALLBACK (do_properties), icon); - - gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); - - gtk_widget_show (menuitem); - menuitem = gtk_menu_item_new_with_label ("Quit"); g_signal_connect (menuitem, "activate", G_CALLBACK (do_quit), NULL); |