[gtranslator] Remove GTK_POLICY_AUTOMATIC



commit 0fa4759bee6b511bb8caf925910884ce12b37d4f
Author: Daniel Mustieles <daniel mustieles gmail com>
Date:   Sat Apr 21 11:53:07 2012 +0200

    Remove GTK_POLICY_AUTOMATIC

 .../gtr-alternate-language-panel.c                 |    3 ---
 plugins/open-tran/gtr-open-tran-panel.c            |    2 --
 .../translation-memory/gtr-translation-memory-ui.c |    3 ---
 src/gtr-close-confirmation-dialog.c                |    2 --
 src/gtr-context.c                                  |    2 --
 src/gtr-message-table.c                            |    2 --
 src/gtr-tab.c                                      |    8 --------
 src/toolbareditor/egg-toolbar-editor.c             |    2 --
 8 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/plugins/alternate-language/gtr-alternate-language-panel.c b/plugins/alternate-language/gtr-alternate-language-panel.c
index 08499fe..3de6ad1 100644
--- a/plugins/alternate-language/gtr-alternate-language-panel.c
+++ b/plugins/alternate-language/gtr-alternate-language-panel.c
@@ -361,9 +361,6 @@ gtr_alternate_lang_panel_draw (GtrAlternateLangPanel * panel)
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll),
                                        GTK_SHADOW_IN);
 
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
-                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-
   gtk_box_pack_start (GTK_BOX (panel), scroll, TRUE, TRUE, 0);
 }
 
diff --git a/plugins/open-tran/gtr-open-tran-panel.c b/plugins/open-tran/gtr-open-tran-panel.c
index 5a1d120..694d34b 100644
--- a/plugins/open-tran/gtr-open-tran-panel.c
+++ b/plugins/open-tran/gtr-open-tran-panel.c
@@ -485,8 +485,6 @@ gtr_open_tran_panel_draw (GtrOpenTranPanel * panel)
    * Set up the scrolling window
    */
   scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow),
-                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow),
                                        GTK_SHADOW_IN);
   gtk_box_pack_start (GTK_BOX (panel), scrolledwindow, TRUE, TRUE, 0);
diff --git a/plugins/translation-memory/gtr-translation-memory-ui.c b/plugins/translation-memory/gtr-translation-memory-ui.c
index 3c8d618..220b88e 100644
--- a/plugins/translation-memory/gtr-translation-memory-ui.c
+++ b/plugins/translation-memory/gtr-translation-memory-ui.c
@@ -452,9 +452,6 @@ gtr_translation_memory_ui_init (GtrTranslationMemoryUi * tm_ui)
   priv->tree_view = gtk_tree_view_new ();
   gtk_widget_show (priv->tree_view);
 
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (tm_ui),
-                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-
   model = gtk_list_store_new (N_COLUMNS, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING);
   gtk_tree_view_set_model (GTK_TREE_VIEW (priv->tree_view),
                            GTK_TREE_MODEL (model));
diff --git a/src/gtr-close-confirmation-dialog.c b/src/gtr-close-confirmation-dialog.c
index 8fa29af..186efcd 100644
--- a/src/gtr-close-confirmation-dialog.c
+++ b/src/gtr-close-confirmation-dialog.c
@@ -571,8 +571,6 @@ build_multiple_docs_dialog (GtrCloseConfirmationDialog * dlg)
 
   scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
   gtk_box_pack_start (GTK_BOX (vbox2), scrolledwindow, TRUE, TRUE, 0);
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow),
-                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow),
                                        GTK_SHADOW_IN);
 
diff --git a/src/gtr-context.c b/src/gtr-context.c
index e320021..309c253 100644
--- a/src/gtr-context.c
+++ b/src/gtr-context.c
@@ -352,8 +352,6 @@ gtr_context_panel_init (GtrContextPanel *panel)
 
   /* Set up the scrolling window for the extracted context display */
   priv->sw = gtk_scrolled_window_new (NULL, NULL);
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->sw),
-                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (priv->sw),
                                        GTK_SHADOW_IN);
   gtk_box_pack_start (GTK_BOX (panel), priv->sw, TRUE, TRUE,
diff --git a/src/gtr-message-table.c b/src/gtr-message-table.c
index 7841028..954879f 100644
--- a/src/gtr-message-table.c
+++ b/src/gtr-message-table.c
@@ -353,8 +353,6 @@ gtr_message_table_init (GtrMessageTable * table)
   gtr_message_table_draw (table);
 
   scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow),
-                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
   gtk_box_pack_start (GTK_BOX (table), scrolledwindow, TRUE, TRUE, 0);
   gtk_widget_show (scrolledwindow);
 
diff --git a/src/gtr-tab.c b/src/gtr-tab.c
index 2de880e..9e0a36c 100644
--- a/src/gtr-tab.c
+++ b/src/gtr-tab.c
@@ -431,9 +431,6 @@ gtr_tab_append_msgstr_page (const gchar * tab_label,
 
   gtk_container_add (GTK_CONTAINER (scroll), widget);
 
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
-                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll),
                                        GTK_SHADOW_IN);
 
@@ -742,8 +739,6 @@ gtr_tab_draw (GtrTab *tab)
 
   gtk_container_add (GTK_CONTAINER (scroll), priv->text_msgid);
 
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
-                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll),
                                        GTK_SHADOW_IN);
 
@@ -760,9 +755,6 @@ gtr_tab_draw (GtrTab *tab)
   gtk_container_add (GTK_CONTAINER (priv->text_plural_scroll),
                      priv->text_msgid_plural);
 
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW
-                                  (priv->text_plural_scroll),
-                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW
                                        (priv->text_plural_scroll),
                                        GTK_SHADOW_IN);
diff --git a/src/toolbareditor/egg-toolbar-editor.c b/src/toolbareditor/egg-toolbar-editor.c
index 09339ab..db1db3d 100644
--- a/src/toolbareditor/egg-toolbar-editor.c
+++ b/src/toolbareditor/egg-toolbar-editor.c
@@ -657,8 +657,6 @@ setup_editor (EggToolbarEditor *editor)
   scrolled_window = gtk_scrolled_window_new (NULL, NULL);
   editor->priv->scrolled_window = scrolled_window;
   gtk_widget_show (scrolled_window);
-  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
-				  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
   gtk_box_pack_start (GTK_BOX (editor), scrolled_window, TRUE, TRUE, 0);
 }
 



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