[libpeas] Removing window group handling from the plugin manager test



commit a63569f85338b49132894409d2f385639bf596a5
Author: Garrett Regier <garrettregier gmail com>
Date:   Mon Sep 8 23:42:53 2014 -0700

    Removing window group handling from the plugin manager test
    
    This is no longer required!

 tests/libpeas-gtk/plugin-manager.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/tests/libpeas-gtk/plugin-manager.c b/tests/libpeas-gtk/plugin-manager.c
index 524b369..316f2fe 100644
--- a/tests/libpeas-gtk/plugin-manager.c
+++ b/tests/libpeas-gtk/plugin-manager.c
@@ -36,7 +36,6 @@ typedef struct _TestFixture TestFixture;
 struct _TestFixture {
   PeasEngine *engine;
   GtkWidget *window;
-  GtkWindowGroup *window_group;
   PeasGtkPluginManager *manager;
   PeasGtkPluginManagerView *view;
   GtkTreeSelection *selection;
@@ -59,18 +58,10 @@ test_setup (TestFixture   *fixture,
 {
   fixture->engine = testing_engine_new ();
   fixture->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-  fixture->window_group = gtk_window_group_new ();
   fixture->manager = PEAS_GTK_PLUGIN_MANAGER (peas_gtk_plugin_manager_new (NULL));
   fixture->view = PEAS_GTK_PLUGIN_MANAGER_VIEW (peas_gtk_plugin_manager_get_view (fixture->manager));
   fixture->selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (fixture->view));
 
-  /* gtk_window_set_transient_for() will not add to the
-   * window group unless one has already been created and
-   * find_window_by_title() will need need it to be in the group
-   */
-  gtk_window_group_add_window (fixture->window_group,
-                               GTK_WINDOW (fixture->window));
-
   gtk_container_add (GTK_CONTAINER (fixture->window),
                      GTK_WIDGET (fixture->manager));
 
@@ -98,7 +89,6 @@ test_teardown (TestFixture   *fixture,
                gconstpointer  data)
 {
   gtk_widget_destroy (GTK_WIDGET (fixture->window));
-  g_object_unref (fixture->window_group);
 
   testing_engine_free (fixture->engine);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]