From: Marek Černocký Date: Mon, 22 Feb 2016 08:46:18 +0000 (+0100) Subject: Fix crash on Select All X-Git-Tag: glabels-3_4_0~36 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=46d0313b58e5d0c18f6a1803b6940934c59db199;p=glabels Fix crash on Select All --- 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"); }