[vinagre] Put fullscreen toolbar in the middle of the screen. Closes #568582.



commit 6d2e0ae56ef84c6033bc2495249606bd1a165252
Author: Jonh Wendell <jwendell gnome org>
Date:   Fri Aug 7 13:53:37 2009 -0300

    Put fullscreen toolbar in the middle of the screen. Closes #568582.

 vinagre/vinagre-tab.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vinagre/vinagre-tab.c b/vinagre/vinagre-tab.c
index c8ed7a4..c910b4c 100644
--- a/vinagre/vinagre-tab.c
+++ b/vinagre/vinagre-tab.c
@@ -385,6 +385,7 @@ setup_layout (VinagreTab *tab)
   GtkWidget  *button;
 
   tab->priv->toolbar = gtk_toolbar_new ();
+  gtk_toolbar_set_show_arrow (GTK_TOOLBAR (tab->priv->toolbar), FALSE);
   GTK_WIDGET_SET_FLAGS (tab->priv->toolbar, GTK_NO_SHOW_ALL);
 
   gtk_toolbar_set_style (GTK_TOOLBAR (tab->priv->toolbar), GTK_TOOLBAR_BOTH_HORIZ);
@@ -413,7 +414,6 @@ setup_layout (VinagreTab *tab)
 
   /* Space */
   button = GTK_WIDGET (gtk_separator_tool_item_new ());
-  gtk_separator_tool_item_set_draw (GTK_SEPARATOR_TOOL_ITEM (button), FALSE);
   gtk_tool_item_set_expand (GTK_TOOL_ITEM (button), TRUE);
   gtk_widget_show (GTK_WIDGET (button));
   gtk_toolbar_insert (GTK_TOOLBAR (tab->priv->toolbar), GTK_TOOL_ITEM (button), 0);
@@ -431,6 +431,8 @@ setup_layout (VinagreTab *tab)
   ViewAutoDrawer_SetActive (VIEW_AUTODRAWER (tab->priv->layout), FALSE);
   ViewOvBox_SetOver (VIEW_OV_BOX (tab->priv->layout), tab->priv->toolbar);
   ViewOvBox_SetUnder (VIEW_OV_BOX (tab->priv->layout), tab->priv->scroll);
+  ViewAutoDrawer_SetOffset (VIEW_AUTODRAWER (tab->priv->layout), -1);
+  ViewAutoDrawer_SetFill (VIEW_AUTODRAWER (tab->priv->layout), FALSE);
 }
 
 static void



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