[gtk+/wip/dboles/combobox-cleanup: 9/9] combobox: Remove popup_for_device()



commit 5c9d4d54a1d6ac701ba3e7ed8cac76b6b9dbe7b4
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 ccabde3..a35ff7f 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]