[gnome-software] Avoid bumping the GTK version just for one flag
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Avoid bumping the GTK version just for one flag
- Date: Wed, 29 Jan 2014 15:17:21 +0000 (UTC)
commit c08768971f9d3d5a488843d35215be48279bd07e
Author: Richard Hughes <richard hughsie com>
Date: Wed Jan 29 14:02:39 2014 +0000
Avoid bumping the GTK version just for one flag
src/gs-shell-updates.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index b13d259..c1fc6e7 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -798,8 +798,10 @@ gs_shell_updates_button_refresh_cb (GtkWidget *widget,
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "dialog_update"));
dialog = gtk_message_dialog_new (GTK_WINDOW (widget),
GTK_DIALOG_MODAL |
- GTK_DIALOG_DESTROY_WITH_PARENT |
- GTK_DIALOG_USE_HEADER_BAR,
+#if GTK_CHECK_VERSION(3,11,5)
+ GTK_DIALOG_USE_HEADER_BAR |
+#endif
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CANCEL,
/* TRANSLATORS: can't do updates check */
@@ -826,8 +828,10 @@ gs_shell_updates_button_refresh_cb (GtkWidget *widget,
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "dialog_update"));
dialog = gtk_message_dialog_new (GTK_WINDOW (widget),
GTK_DIALOG_MODAL |
- GTK_DIALOG_DESTROY_WITH_PARENT |
- GTK_DIALOG_USE_HEADER_BAR,
+#if GTK_CHECK_VERSION(3,11,5)
+ GTK_DIALOG_USE_HEADER_BAR |
+#endif
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CANCEL,
/* TRANSLATORS: $$$ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]