vinagre r550 - in trunk: . data/icons src



Author: jwendell
Date: Mon Dec 15 23:25:32 2008
New Revision: 550
URL: http://svn.gnome.org/viewvc/vinagre?rev=550&view=rev

Log:
2008-12-15  Jonh Wendell <jwendell gnome org>

	* src/vinagre-tab.c: Added minimize button to toolbar in fullscreen
	mode, closes #558596.
	* data/icons/hicolor_status_*view-minimize.png: New icons, by
	Vinicius Depizzol.



Added:
   trunk/data/icons/hicolor_status_16x16_view-minimize.png   (contents, props changed)
   trunk/data/icons/hicolor_status_22x22_view-minimize.png   (contents, props changed)
   trunk/data/icons/hicolor_status_32x32_view-minimize.png   (contents, props changed)
   trunk/data/icons/hicolor_status_48x48_view-minimize.png   (contents, props changed)
Modified:
   trunk/ChangeLog
   trunk/data/icons/Makefile.am
   trunk/src/vinagre-tab.c

Modified: trunk/data/icons/Makefile.am
==============================================================================
--- trunk/data/icons/Makefile.am	(original)
+++ trunk/data/icons/Makefile.am	Mon Dec 15 23:25:32 2008
@@ -23,6 +23,10 @@
 	hicolor_mimetypes_48x48_application-x-vnc.png \
 	hicolor_mimetypes_scalable_application-x-remote-connection.svg \
 	hicolor_mimetypes_scalable_application-x-vnc.svg \
+	hicolor_status_16x16_view-minimize.png \
+	hicolor_status_22x22_view-minimize.png \
+	hicolor_status_32x32_view-minimize.png \
+	hicolor_status_48x48_view-minimize.png \
 	$(NULL)
 
 private_icons = \

Added: trunk/data/icons/hicolor_status_16x16_view-minimize.png
==============================================================================
Binary file. No diff available.

Added: trunk/data/icons/hicolor_status_22x22_view-minimize.png
==============================================================================
Binary file. No diff available.

Added: trunk/data/icons/hicolor_status_32x32_view-minimize.png
==============================================================================
Binary file. No diff available.

Added: trunk/data/icons/hicolor_status_48x48_view-minimize.png
==============================================================================
Binary file. No diff available.

Modified: trunk/src/vinagre-tab.c
==============================================================================
--- trunk/src/vinagre-tab.c	(original)
+++ trunk/src/vinagre-tab.c	Mon Dec 15 23:25:32 2008
@@ -746,6 +746,13 @@
 }
 
 static void
+minimize_button_clicked (GtkToolButton *button,
+			 VinagreTab    *tab)
+{
+  gtk_window_iconify (GTK_WINDOW (tab->priv->window));
+}
+
+static void
 fullscreen_button_clicked (GtkToolButton *button,
 			   VinagreTab    *tab)
 {
@@ -803,19 +810,26 @@
 
   gtk_toolbar_set_style (GTK_TOOLBAR (tab->priv->toolbar), GTK_TOOLBAR_BOTH_HORIZ);
 
+  /* Close connection */
+  button = GTK_WIDGET (gtk_tool_button_new_from_stock (GTK_STOCK_CLOSE));
+  gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (button), _("Close connection"));
+  gtk_widget_show (GTK_WIDGET (button));
+  gtk_toolbar_insert (GTK_TOOLBAR (tab->priv->toolbar), GTK_TOOL_ITEM (button), 0);
+  g_signal_connect (button, "clicked", G_CALLBACK (close_button_clicked), tab);
+
   /* Leave fullscreen */
   button = GTK_WIDGET (gtk_tool_button_new_from_stock (GTK_STOCK_LEAVE_FULLSCREEN));
   gtk_widget_show (GTK_WIDGET (button));
-  gtk_tool_item_set_is_important (GTK_TOOL_ITEM (button), TRUE);
   gtk_toolbar_insert (GTK_TOOLBAR (tab->priv->toolbar), GTK_TOOL_ITEM (button), 0);
   g_signal_connect (button, "clicked", G_CALLBACK (fullscreen_button_clicked), tab);
 
-  /* Close connection */
-  button = GTK_WIDGET (gtk_tool_button_new_from_stock (GTK_STOCK_CLOSE));
-  gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (button), _("Close connection"));
+  /* Minimize window */
+  button = GTK_WIDGET (gtk_tool_button_new (NULL, NULL));
+  gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (button), _("Minimize window"));
+  gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (button), "view-minimize");
   gtk_widget_show (GTK_WIDGET (button));
   gtk_toolbar_insert (GTK_TOOLBAR (tab->priv->toolbar), GTK_TOOL_ITEM (button), 0);
-  g_signal_connect (button, "clicked", G_CALLBACK (close_button_clicked), tab);
+  g_signal_connect (button, "clicked", G_CALLBACK (minimize_button_clicked), tab);
 
   /* Space */
   button = GTK_WIDGET (gtk_separator_tool_item_new ());



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