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

Enrico Troeger enrico at xfce.org
Mon Dec 4 19:34:25 CET 2006


Author: enrico
Date: 2006-12-04 18:34:25 +0000 (Mon, 04 Dec 2006)
New Revision: 2194

Modified:
   xfce4-dict-plugin/trunk/ChangeLog
   xfce4-dict-plugin/trunk/panel-plugin/dict.c
Log:
Fixed wrong display of panel text entry when panel orientation changed.


Modified: xfce4-dict-plugin/trunk/ChangeLog
===================================================================
--- xfce4-dict-plugin/trunk/ChangeLog	2006-12-03 10:26:22 UTC (rev 2193)
+++ xfce4-dict-plugin/trunk/ChangeLog	2006-12-04 18:34:25 UTC (rev 2194)
@@ -1,3 +1,8 @@
+2006-12-04 enrico
+
+	* Fixed wrong display of panel text entry when panel orientation changed.
+
+
 2006-11-25 enrico
 
 	* Enabled website link to goodies.xfce.org in the about dialog.

Modified: xfce4-dict-plugin/trunk/panel-plugin/dict.c
===================================================================
--- xfce4-dict-plugin/trunk/panel-plugin/dict.c	2006-12-03 10:26:22 UTC (rev 2193)
+++ xfce4-dict-plugin/trunk/panel-plugin/dict.c	2006-12-04 18:34:25 UTC (rev 2194)
@@ -682,9 +682,10 @@
 }
 
 
-static void dict_change_orientation(XfcePanelPlugin *plugin, GtkOrientation orientation, DictData *dd)
+static void dict_panel_change_orientation(XfcePanelPlugin *plugin, GtkOrientation orientation,
+										  DictData *dd)
 {
-	if (orientation == GTK_ORIENTATION_VERTICAL)
+	if (! dd->show_panel_entry || orientation == GTK_ORIENTATION_VERTICAL)
 		gtk_widget_hide(dd->panel_entry);
 	else
 		gtk_widget_show(dd->panel_entry);
@@ -897,7 +898,9 @@
 
 		if (dd->show_panel_entry &&
 			xfce_panel_plugin_get_orientation(dd->plugin) == GTK_ORIENTATION_HORIZONTAL)
+		{
 			gtk_widget_show(dd->panel_entry);
+		}
 		else
 			gtk_widget_hide(dd->panel_entry);
 
@@ -1466,7 +1469,7 @@
 
     g_signal_connect(plugin, "size-changed", G_CALLBACK(dict_set_size), dd);
 
-	g_signal_connect(plugin, "orientation-changed", G_CALLBACK(dict_change_orientation), dd);
+	g_signal_connect(plugin, "orientation-changed", G_CALLBACK(dict_panel_change_orientation), dd);
 
     g_signal_connect(plugin, "style-set", G_CALLBACK(dict_style_set), dd);
 




More information about the Goodies-commits mailing list