[gtk+/gtk-3-22] ComboBox: rm pointless var in get_popup_accessible
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] ComboBox: rm pointless var in get_popup_accessible
- Date: Thu, 23 Feb 2017 18:50:14 +0000 (UTC)
commit 06f772863190de0e48f707d9be18f169b92863ae
Author: Daniel Boles <dboles src gnome org>
Date: Thu Feb 23 18:47:19 2017 +0000
ComboBox: rm pointless var in get_popup_accessible
gtk/gtkcombobox.c | 8 ++------
gtk/gtkcombobox.h | 2 +-
2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 1364e65..b1b9ad1 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -4683,21 +4683,17 @@ gtk_combo_box_get_popup_fixed_width (GtkComboBox *combo_box)
*
* Since: 2.6
*/
-AtkObject*
+AtkObject *
gtk_combo_box_get_popup_accessible (GtkComboBox *combo_box)
{
GtkComboBoxPrivate *priv;
- AtkObject *atk_obj;
g_return_val_if_fail (GTK_IS_COMBO_BOX (combo_box), NULL);
priv = combo_box->priv;
if (priv->popup_widget)
- {
- atk_obj = gtk_widget_get_accessible (priv->popup_widget);
- return atk_obj;
- }
+ return gtk_widget_get_accessible (priv->popup_widget);
return NULL;
}
diff --git a/gtk/gtkcombobox.h b/gtk/gtkcombobox.h
index a896ab6..c886983 100644
--- a/gtk/gtkcombobox.h
+++ b/gtk/gtkcombobox.h
@@ -182,7 +182,7 @@ void gtk_combo_box_popup_for_device (GtkComboBox *combo_box,
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);
+AtkObject * gtk_combo_box_get_popup_accessible (GtkComboBox *combo_box);
GDK_AVAILABLE_IN_ALL
gint gtk_combo_box_get_id_column (GtkComboBox *combo_box);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]