]> git.sur5r.net Git - glabels/commitdiff
Fix crash on Select All
authorMarek Černocký <marek@manet.cz>
Mon, 22 Feb 2016 08:46:18 +0000 (09:46 +0100)
committerJim Evins <evins@snaught.com>
Sun, 28 Feb 2016 16:39:42 +0000 (11:39 -0500)
src/object-editor.c

index abbce239666a24b697e2e1e1cdfe1bac805fe398..bc1e2c0d48381d064d529004d70ff1907125f0b7 100644 (file)
@@ -459,24 +459,24 @@ set_object (glObjectEditor  *editor,
                                   G_CALLBACK (object_moved_cb), editor);
         }
         else
-        {
-                editor->priv->object = NULL;
+       {
+               gtk_widget_hide (editor->priv->notebook);
 
-                gtk_image_set_from_icon_name (GTK_IMAGE(editor->priv->title_image),
-                                              "glabels-object-properties",
-                                              GTK_ICON_SIZE_LARGE_TOOLBAR);
+               editor->priv->object = NULL;
+
+               gtk_image_set_from_icon_name (GTK_IMAGE(editor->priv->title_image),
+                                             "glabels-object-properties",
+                                             GTK_ICON_SIZE_LARGE_TOOLBAR);
 
                s = g_strdup_printf ("<span weight=\"bold\">%s</span>",
-                                    _("Object properties"));
+                                     _("Object properties"));
                gtk_label_set_text (GTK_LABEL(editor->priv->title_label), s);
                gtk_label_set_use_markup (GTK_LABEL(editor->priv->title_label), TRUE);
                g_free (s);
 
-                gtk_widget_set_sensitive (editor->priv->title_image, FALSE);
-                gtk_widget_set_sensitive (editor->priv->title_label, FALSE);
-
-                gtk_widget_hide (editor->priv->notebook);
-        }
+               gtk_widget_set_sensitive (editor->priv->title_image, FALSE);
+               gtk_widget_set_sensitive (editor->priv->title_label, FALSE);
+       }
 
        gl_debug (DEBUG_EDITOR, "END");
 }