[libdazzle] gtk: avoid use of goto
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] gtk: avoid use of goto
- Date: Fri, 23 Jun 2017 00:02:22 +0000 (UTC)
commit 009ede4f4af64a69e03bb942bc04388e0a296314
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 22 17:02:12 2017 -0700
gtk: avoid use of goto
Not useful here, just indent some more.
src/util/dzl-gtk.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/util/dzl-gtk.c b/src/util/dzl-gtk.c
index ff80efd..2bc128b 100644
--- a/src/util/dzl-gtk.c
+++ b/src/util/dzl-gtk.c
@@ -415,21 +415,21 @@ dzl_gtk_widget_mux_action_groups (GtkWidget *widget,
if (from_widget != NULL)
{
prefixes = gtk_widget_list_action_prefixes (from_widget);
- if (prefixes == NULL)
- goto replace_key;
- for (guint i = 0; prefixes [i]; i++)
+ if (prefixes != NULL)
{
- GActionGroup *group = gtk_widget_get_action_group (from_widget, prefixes [i]);
+ for (guint i = 0; prefixes [i]; i++)
+ {
+ GActionGroup *group = gtk_widget_get_action_group (from_widget, prefixes [i]);
- if G_UNLIKELY (group == NULL)
- continue;
+ if G_UNLIKELY (group == NULL)
+ continue;
- gtk_widget_insert_action_group (widget, prefixes [i], group);
+ gtk_widget_insert_action_group (widget, prefixes [i], group);
+ }
}
}
-replace_key:
/* Store the set of muxed prefixes so that we can unmux them later. */
g_object_set_data_full (G_OBJECT (widget), mux_key,
g_strdupv ((gchar **)prefixes),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]