Commit ec9cf6d7 authored by Matthias Clasen's avatar Matthias Clasen

GtkComboBox: Add private api to get the popup

This will be used to make the popup appear in the inspector.
parent 634972e0
...@@ -521,6 +521,7 @@ gtk_private_h_sources = \ ...@@ -521,6 +521,7 @@ gtk_private_h_sources = \
gtkcolorplaneprivate.h \ gtkcolorplaneprivate.h \
gtkcolorscaleprivate.h \ gtkcolorscaleprivate.h \
gtkcolorchooserprivate.h \ gtkcolorchooserprivate.h \
gtkcomboboxprivate.h \
gtkcontainerprivate.h \ gtkcontainerprivate.h \
gtkcssanimationprivate.h \ gtkcssanimationprivate.h \
gtkcssarrayvalueprivate.h \ gtkcssarrayvalueprivate.h \
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include "gtkwindow.h" #include "gtkwindow.h"
#include "gtktypebuiltins.h" #include "gtktypebuiltins.h"
#include "gtkprivate.h" #include "gtkprivate.h"
#include "gtkcomboboxprivate.h"
#include <gobject/gvaluecollector.h> #include <gobject/gvaluecollector.h>
...@@ -5919,3 +5920,12 @@ gtk_combo_box_set_active_id (GtkComboBox *combo_box, ...@@ -5919,3 +5920,12 @@ gtk_combo_box_set_active_id (GtkComboBox *combo_box,
return match; return match;
} }
GtkWidget *
gtk_combo_box_get_popup (GtkComboBox *combo)
{
if (combo->priv->popup_window)
return combo->priv->popup_window;
else
return combo->priv->popup_widget;
}
/* GTK - The GIMP Toolkit
* Copyright (C) 2014 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GTK_COMBO_BOX_PRIVATE_H__
#define __GTK_COMBO_BOX_PRIVATE_H__
#include "gtkcombobox.h"
G_BEGIN_DECLS
GtkWidget *gtk_combo_box_get_popup (GtkComboBox *combo_box);
G_END_DECLS
#endif /* __GTK_COMBO_BOX_PRIVATE_H__ */
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