[Goodies-commits] r2195 - in xfce4-dict-plugin/trunk: . panel-plugin

Enrico Troeger enrico at xfce.org
Mon Dec 4 19:52:13 CET 2006


Author: enrico
Date: 2006-12-04 18:52:13 +0000 (Mon, 04 Dec 2006)
New Revision: 2195

Modified:
   xfce4-dict-plugin/trunk/ChangeLog
   xfce4-dict-plugin/trunk/panel-plugin/dict.c
Log:
Panel text entry grows and shrinks now according to the given size.


Modified: xfce4-dict-plugin/trunk/ChangeLog
===================================================================
--- xfce4-dict-plugin/trunk/ChangeLog	2006-12-04 18:34:25 UTC (rev 2194)
+++ xfce4-dict-plugin/trunk/ChangeLog	2006-12-04 18:52:13 UTC (rev 2195)
@@ -1,6 +1,7 @@
 2006-12-04 enrico
 
 	* Fixed wrong display of panel text entry when panel orientation changed.
+	* Panel text entry grows and shrinks now according to the given size.
 
 
 2006-11-25 enrico

Modified: xfce4-dict-plugin/trunk/panel-plugin/dict.c
===================================================================
--- xfce4-dict-plugin/trunk/panel-plugin/dict.c	2006-12-04 18:34:25 UTC (rev 2194)
+++ xfce4-dict-plugin/trunk/panel-plugin/dict.c	2006-12-04 18:52:13 UTC (rev 2195)
@@ -672,7 +672,10 @@
     gtk_image_set_from_pixbuf(GTK_IMAGE(dd->panel_button_image), dd->icon);
 
     if (dd->show_panel_entry && xfce_panel_plugin_get_orientation(dd->plugin) == GTK_ORIENTATION_HORIZONTAL)
+    {
     	width = size + dd->panel_entry_size;
+		gtk_widget_set_size_request(dd->panel_entry, dd->panel_entry_size, -1);
+    }
     else
 		width = size;
 




More information about the Goodies-commits mailing list