Commit 128ccea1 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Keep the popup posted if the button is released over the cellview. This

2005-05-17  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
	the popup posted if the button is released over the cellview.
	This matches the behaviour of other combo box implementations.
	(#171378)
parent f1a4c080
2005-05-17 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
the popup posted if the button is released over the cellview.
This matches the behaviour of other combo box implementations.
(#171378)
* gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
when recursing. (#153682, Felipe Heidrich)
......
2005-05-17 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
the popup posted if the button is released over the cellview.
This matches the behaviour of other combo box implementations.
(#171378)
* gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
when recursing. (#153682, Felipe Heidrich)
......
2005-05-17 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
the popup posted if the button is released over the cellview.
This matches the behaviour of other combo box implementations.
(#171378)
* gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
when recursing. (#153682, Felipe Heidrich)
......
......@@ -3417,7 +3417,8 @@ gtk_combo_box_list_button_released (GtkWidget *widget,
if (ewidget != combo_box->priv->tree_view)
{
if (ewidget == combo_box->priv->button &&
if ((ewidget == combo_box->priv->button ||
ewidget == combo_box->priv->box) &&
!popup_in_progress &&
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (combo_box->priv->button)))
{
......@@ -3426,7 +3427,8 @@ gtk_combo_box_list_button_released (GtkWidget *widget,
}
/* released outside treeview */
if (ewidget != combo_box->priv->button)
if (ewidget != combo_box->priv->button &&
ewidget != combo_box->priv->box)
{
gtk_combo_box_popdown (combo_box);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment