summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boles <dboles@src.gnome.org>2017-01-20 05:13:54 +0000
committerDaniel Boles <dboles@src.gnome.org>2017-01-20 13:51:20 +0000
commit5c9d4d54a1d6ac701ba3e7ed8cac76b6b9dbe7b4 (patch)
tree14cffd45244ac6394eb8ed7992d7658693a7b95b
parent65d0035fa66c21bcfbec1f40b5e7697d0ff9432f (diff)
downloadgtk+-wip/dboles/combobox-cleanup.tar.gz
combobox: Remove popup_for_device()wip/dboles/combobox-cleanup
It no longer does anything different/useful, so don’t keep it around.
-rw-r--r--gtk/gtkcombobox.c33
-rw-r--r--gtk/gtkcombobox.h3
2 files changed, 0 insertions, 36 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index ccabde3b08..a35ff7f9ff 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -1692,39 +1692,6 @@ gtk_combo_box_popup (GtkComboBox *combo_box)
g_signal_emit (combo_box, combo_box_signals[POPUP], 0);
}
-/**
- * gtk_combo_box_popup_for_device:
- * @combo_box: a #GtkComboBox
- * @device: a #GdkDevice
- *
- * Pops up the menu of @combo_box. Note that currently this does not do anything
- * with the device, as it was previously only used for list-mode ComboBoxes,
- * and those were removed in GTK+ 4. However, it is retained in case similar
- * functionality is added back later.
- *
- * Since: 3.0
- **/
-void
-gtk_combo_box_popup_for_device (GtkComboBox *combo_box,
- GdkDevice *device)
-{
- /* As above, this currently does not do anything useful, and nothing with the
- * passed-in device. But the bits that are not blatantly obsolete are kept. */
-
- GtkComboBoxPrivate *priv = combo_box->priv;
-
- g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
- g_return_if_fail (GDK_IS_DEVICE (device));
-
- if (!gtk_widget_get_realized (GTK_WIDGET (combo_box)))
- return;
-
- if (gtk_widget_get_mapped (priv->popup_widget))
- return;
-
- gtk_combo_box_menu_popup (combo_box, priv->trigger_event);
-}
-
static void
gtk_combo_box_real_popup (GtkComboBox *combo_box)
{
diff --git a/gtk/gtkcombobox.h b/gtk/gtkcombobox.h
index 77130acb24..619165f574 100644
--- a/gtk/gtkcombobox.h
+++ b/gtk/gtkcombobox.h
@@ -159,9 +159,6 @@ gboolean gtk_combo_box_get_popup_fixed_width (GtkComboBox *combo
GDK_AVAILABLE_IN_ALL
void gtk_combo_box_popup (GtkComboBox *combo_box);
GDK_AVAILABLE_IN_ALL
-void gtk_combo_box_popup_for_device (GtkComboBox *combo_box,
- GdkDevice *device);
-GDK_AVAILABLE_IN_ALL
void gtk_combo_box_popdown (GtkComboBox *combo_box);
GDK_AVAILABLE_IN_ALL
AtkObject* gtk_combo_box_get_popup_accessible (GtkComboBox *combo_box);