[gtk+/wip/dboles/combobox-cleanup: 5/5] combobox: Remove popup_for_device()
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/dboles/combobox-cleanup: 5/5] combobox: Remove popup_for_device()
- Date: Fri, 20 Jan 2017 12:20:15 +0000 (UTC)
commit f988ee62cdf32135113f5c139915ef67943efa56
Author: Daniel Boles <dboles src gnome org>
Date: Fri Jan 20 05:13:54 2017 +0000
combobox: Remove popup_for_device()
It no longer does anything different/useful, so don’t keep it around.
gtk/gtkcombobox.c | 33 ---------------------------------
gtk/gtkcombobox.h | 3 ---
2 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 84e0ed4..f612187 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 77130ac..619165f 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]