From 46d0313b58e5d0c18f6a1803b6940934c59db199 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20=C4=8Cernock=C3=BD?= Date: Mon, 22 Feb 2016 09:46:18 +0100 Subject: [PATCH] Fix crash on Select All --- src/object-editor.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/object-editor.c b/src/object-editor.c index abbce239..bc1e2c0d 100644 --- a/src/object-editor.c +++ b/src/object-editor.c @@ -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 ("%s", - _("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"); } -- 2.39.5