[gnome-builder] greeter : Make greeter sensitive after an error
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] greeter : Make greeter sensitive after an error
- Date: Mon, 26 Dec 2016 17:01:36 +0000 (UTC)
commit fd5258c2e3106f3b2d64638241aaeab9aef3076d
Author: Anoop Chandu <anoopchandu96 gmail com>
Date: Sat Dec 24 11:41:13 2016 +0530
greeter : Make greeter sensitive after an error
Make greeter perspective senstitive when an error occurs during opening
a project.
https://bugzilla.gnome.org/show_bug.cgi?id=771155
libide/greeter/ide-greeter-perspective.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libide/greeter/ide-greeter-perspective.c b/libide/greeter/ide-greeter-perspective.c
index 8ea47dc..65a571f 100644
--- a/libide/greeter/ide-greeter-perspective.c
+++ b/libide/greeter/ide-greeter-perspective.c
@@ -437,9 +437,11 @@ ide_greeter_perspective_open_project_cb (GObject *object,
gpointer user_data)
{
IdeWorkbench *workbench = (IdeWorkbench *)object;
+ g_autoptr(IdeGreeterPerspective) self = (IdeGreeterPerspective *)user_data;
g_autoptr(GError) error = NULL;
g_assert (IDE_IS_WORKBENCH (workbench));
+ g_assert (IDE_IS_GREETER_PERSPECTIVE (self));
if (!ide_workbench_open_project_finish (workbench, result, &error))
{
@@ -460,6 +462,9 @@ ide_greeter_perspective_open_project_cb (GObject *object,
g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), workbench);
gtk_window_present (GTK_WINDOW (dialog));
+
+ gtk_widget_set_sensitive (GTK_WIDGET (self), TRUE);
+ gtk_widget_set_sensitive (GTK_WIDGET (self->titlebar), TRUE);
}
}
@@ -521,7 +526,7 @@ ide_greeter_perspective__row_activated (IdeGreeterPerspective *self,
project_file,
NULL,
ide_greeter_perspective_open_project_cb,
- NULL);
+ g_object_ref (self));
}
ide_project_info_set_is_recent (project_info, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]