evolution r35416 - in trunk: calendar calendar/gui widgets widgets/misc widgets/table widgets/text



Author: mcrha
Date: Fri Apr 25 13:35:38 2008
New Revision: 35416
URL: http://svn.gnome.org/viewvc/evolution?rev=35416&view=rev

Log:
2008-04-25  Danny Baumann  <dannybaumann web de>

	** Fix for bug #529893

	* widgets/misc/e-dateedit.c (create_children):
	* widgets/misc/e-combo-cell-editable.c (build_popup):
	* widgets/misc/e-cell-date-edit.c (e_cell_date_edit_init):
	* widgets/table/e-table-header-item.c: (make_shaped_window_from_xpm):
	* widgets/table/e-cell-combo.c: (e_cell_combo_init):
	* widgets/table/e-cell-text.c: (ect_show_tooltip):
	* widgets/text/e-text.c: (_do_tooltip):
	* calendar/gui/e-calendar-view.c: (e_calendar_view_get_tooltips):
	Properly set type hints for popup windows.



Modified:
   trunk/calendar/ChangeLog
   trunk/calendar/gui/e-calendar-view.c
   trunk/widgets/ChangeLog
   trunk/widgets/misc/ChangeLog
   trunk/widgets/misc/e-cell-date-edit.c
   trunk/widgets/misc/e-combo-cell-editable.c
   trunk/widgets/misc/e-dateedit.c
   trunk/widgets/table/ChangeLog
   trunk/widgets/table/e-cell-combo.c
   trunk/widgets/table/e-cell-text.c
   trunk/widgets/table/e-table-header-item.c
   trunk/widgets/text/e-text.c

Modified: trunk/calendar/gui/e-calendar-view.c
==============================================================================
--- trunk/calendar/gui/e-calendar-view.c	(original)
+++ trunk/calendar/gui/e-calendar-view.c	Fri Apr 25 13:35:38 2008
@@ -2298,6 +2298,7 @@
 	frame = gtk_frame_new (NULL);
 	gtk_frame_set_shadow_type ((GtkFrame *)frame, GTK_SHADOW_IN);
 
+	gtk_window_set_type_hint (GTK_WINDOW (pevent->tooltip), GDK_WINDOW_TYPE_HINT_TOOLTIP);
 	gtk_window_move ((GtkWindow *)pevent->tooltip, pevent->x +16, pevent->y+16);
 	gtk_container_add ((GtkContainer *)frame, box);
 	gtk_container_add ((GtkContainer *)pevent->tooltip, frame);

Modified: trunk/widgets/misc/e-cell-date-edit.c
==============================================================================
--- trunk/widgets/misc/e-cell-date-edit.c	(original)
+++ trunk/widgets/misc/e-cell-date-edit.c	Fri Apr 25 13:35:38 2008
@@ -172,6 +172,8 @@
 	   ever be one popup in use at a time. */
 	ecde->popup_window = gtk_window_new (GTK_WINDOW_POPUP);
 
+	gtk_window_set_type_hint (GTK_WINDOW (ecde->popup_window),
+				  GDK_WINDOW_TYPE_HINT_COMBO);
 	gtk_window_set_policy (GTK_WINDOW (ecde->popup_window),
 			       TRUE, TRUE, FALSE);
 

Modified: trunk/widgets/misc/e-combo-cell-editable.c
==============================================================================
--- trunk/widgets/misc/e-combo-cell-editable.c	(original)
+++ trunk/widgets/misc/e-combo-cell-editable.c	Fri Apr 25 13:35:38 2008
@@ -146,7 +146,7 @@
 	gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_OUT);
 	gtk_widget_show (frame);
 	gtk_container_add (GTK_CONTAINER (ecce->priv->popup), frame);
-
+	gtk_window_set_type_hint (GTK_WINDOW (ecce->priv->popup), GDK_WINDOW_TYPE_HINT_COMBO);
 	ecce->priv->tree_view = GTK_TREE_VIEW (gtk_tree_view_new ());
 	model = GTK_TREE_MODEL (gtk_list_store_new (1, G_TYPE_STRING));
 

Modified: trunk/widgets/misc/e-dateedit.c
==============================================================================
--- trunk/widgets/misc/e-dateedit.c	(original)
+++ trunk/widgets/misc/e-dateedit.c	Fri Apr 25 13:35:38 2008
@@ -437,6 +437,8 @@
 		gtk_widget_show (priv->space);
 
 	priv->cal_popup = gtk_window_new (GTK_WINDOW_POPUP);
+	gtk_window_set_type_hint (GTK_WINDOW (priv->cal_popup),
+				  GDK_WINDOW_TYPE_HINT_COMBO);
 	gtk_widget_set_events (priv->cal_popup,
 			       gtk_widget_get_events (priv->cal_popup)
 			       | GDK_KEY_PRESS_MASK);

Modified: trunk/widgets/table/e-cell-combo.c
==============================================================================
--- trunk/widgets/table/e-cell-combo.c	(original)
+++ trunk/widgets/table/e-cell-combo.c	Fri Apr 25 13:35:38 2008
@@ -138,6 +138,7 @@
 	   ever be one popup in use at a time. */
 	ecc->popup_window = gtk_window_new (GTK_WINDOW_POPUP);
 
+	gtk_window_set_type_hint (GTK_WINDOW (ecc->popup_window), GDK_WINDOW_TYPE_HINT_COMBO);
 	gtk_window_set_policy (GTK_WINDOW (ecc->popup_window),
 			       TRUE, TRUE, FALSE);
 

Modified: trunk/widgets/table/e-cell-text.c
==============================================================================
--- trunk/widgets/table/e-cell-text.c	(original)
+++ trunk/widgets/table/e-cell-text.c	Fri Apr 25 13:35:38 2008
@@ -1571,6 +1571,7 @@
 
 	window = gtk_window_new (GTK_WINDOW_POPUP);
 	gtk_container_set_border_width (GTK_CONTAINER (window), 1);
+	gtk_window_set_type_hint (GTK_WINDOW (window), GDK_WINDOW_TYPE_HINT_TOOLTIP);
 
 	canvas = e_canvas_new ();
 	gtk_container_add (GTK_CONTAINER (window), canvas);

Modified: trunk/widgets/table/e-table-header-item.c
==============================================================================
--- trunk/widgets/table/e-table-header-item.c	(original)
+++ trunk/widgets/table/e-table-header-item.c	Fri Apr 25 13:35:38 2008
@@ -470,6 +470,7 @@
 
 	gtk_widget_push_colormap (gdk_rgb_get_colormap ());
 	win = gtk_window_new (GTK_WINDOW_POPUP);
+	gtk_window_set_type_hint (GTK_WINDOW (win), GDK_WINDOW_TYPE_HINT_NOTIFICATION);
 
 	pix = gtk_image_new_from_pixmap (pixmap, bitmap);
 	gtk_widget_realize (win);

Modified: trunk/widgets/text/e-text.c
==============================================================================
--- trunk/widgets/text/e-text.c	(original)
+++ trunk/widgets/text/e-text.c	Fri Apr 25 13:35:38 2008
@@ -1997,6 +1997,7 @@
 
 	tooltip_window = gtk_window_new (GTK_WINDOW_POPUP);
 	gtk_container_set_border_width (GTK_CONTAINER (tooltip_window), 1);
+	gtk_window_set_type_hint (GTK_WINDOW (tooltip_window), GDK_WINDOW_TYPE_HINT_TOOLTIP);
 
 	canvas = e_canvas_new ();
 



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