diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-12-31 13:05:47 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-01-02 18:14:13 -0500 |
commit | ab256384b847307a201b3f7fbb81622933a04123 (patch) | |
tree | da050568e929d71e249bd109a0d02651d2832937 /testsuite | |
parent | c0cd46355d66f180afc417aa85fbd4c827166f58 (diff) | |
download | gtk+-ab256384b847307a201b3f7fbb81622933a04123.tar.gz |
testsuite: Drop commented out and useless code
These two uses of ::delete-event were pointless.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gtk/displayclose.c | 5 | ||||
-rw-r--r-- | testsuite/gtk/filtermodel.c | 27 |
2 files changed, 1 insertions, 31 deletions
diff --git a/testsuite/gtk/displayclose.c b/testsuite/gtk/displayclose.c index d670f06330..47794a476d 100644 --- a/testsuite/gtk/displayclose.c +++ b/testsuite/gtk/displayclose.c @@ -24,10 +24,7 @@ main (int argc, char **argv) gdk_display_manager_set_default_display (gdk_display_manager_get (), display); win = gtk_window_new (GTK_WINDOW_TOPLEVEL); - g_signal_connect (win, "destroy", - G_CALLBACK (gtk_main_quit), NULL); - g_signal_connect (win, "delete-event", - G_CALLBACK (gtk_widget_destroy), NULL); + g_signal_connect (win, "destroy", G_CALLBACK (gtk_main_quit), NULL); but = gtk_button_new_with_label ("Try to Exit"); g_signal_connect_swapped (but, "clicked", diff --git a/testsuite/gtk/filtermodel.c b/testsuite/gtk/filtermodel.c index a67151bd2b..c54430b53b 100644 --- a/testsuite/gtk/filtermodel.c +++ b/testsuite/gtk/filtermodel.c @@ -6397,33 +6397,6 @@ specific_bug_621076 (void) gtk_tree_store_set (store, &item_iter, 0, "invisible-3:1", -1); signal_monitor_assert_is_empty (monitor); -#if 0 - { - GtkWidget *window; - GtkTreeViewColumn *col; - - gtk_tree_view_expand_all (GTK_TREE_VIEW (view)); - - col = gtk_tree_view_column_new_with_attributes ("foo", - gtk_cell_renderer_text_new (), - "text", 0, NULL); - gtk_tree_view_append_column (GTK_TREE_VIEW (view), col); - - window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - g_signal_connect (window, "delete-event", - G_CALLBACK (gtk_widget_destroy), NULL); - g_signal_connect (window, "destroy", - G_CALLBACK (gtk_main_quit), NULL); - - gtk_container_add (GTK_CONTAINER (window), view); - - gtk_widget_show (view); - gtk_widget_show (window); - - gtk_main (); - } -#endif - /* Cleanup */ signal_monitor_free (monitor); g_object_unref (view); |