[gnome-software/wip/attente/gapplication] Fix crash
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/attente/gapplication] Fix crash
- Date: Tue, 22 Mar 2016 22:21:03 +0000 (UTC)
commit c019b7fd1c8c0189f409fe632c0a656a448fa2b1
Author: William Hua <william hua canonical com>
Date: Tue Mar 22 18:03:57 2016 -0400
Fix crash
src/gs-shell.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index a675846..6f77fdd 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -215,6 +215,8 @@ gs_shell_set_header_end_widget (GsShell *shell, GtkWidget *widget)
}
}
+static void setup_builder (GsShell *shell);
+
void
gs_shell_change_mode (GsShell *shell,
GsShellMode mode,
@@ -231,6 +233,8 @@ gs_shell_change_mode (GsShell *shell,
if (priv->ignore_primary_buttons)
return;
+ setup_builder (shell);
+
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "header"));
gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (widget), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]