[gtk+] Revert "GtkFileChooser: Make local-only default to FALSE"
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Revert "GtkFileChooser: Make local-only default to FALSE"
- Date: Thu, 17 Nov 2016 14:08:31 +0000 (UTC)
commit 2f197ac0c29ad00719d86ad6965af110fec137f9
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 17 09:05:47 2016 -0500
Revert "GtkFileChooser: Make local-only default to FALSE"
This reverts commit 0bc79910e03b69279d0aee8edf76ae5cae63ff65.
gtk/gtk-builder-tool | 228 --------------------
gtk/gtk-encode-symbolic-svg | 228 --------------------
gtk/gtk-launch | 228 --------------------
gtk/gtk-query-immodules-4.0 | 228 --------------------
gtk/gtk-query-settings | 228 --------------------
gtk/gtk-update-icon-cache | Bin 67536 -> 0 bytes
gtk/gtkfilechooser.c | 2 +-
gtk/gtkfilechooserentry.c | 2 +
gtk/gtkfilechooserwidget.c | 2 +-
gtk/gtkplacesview.c | 1 -
gtk/libgtk3.manifest | 21 --
.../_colors-public.scssc | Bin 23495 -> 0 bytes
.../_colors.scssc | Bin 36911 -> 0 bytes
.../_common.scssc | Bin 1066578 -> 0 bytes
.../_drawing.scssc | Bin 240829 -> 0 bytes
.../gtk-contained-dark.scssc | Bin 1400 -> 0 bytes
.../gtk-contained.scssc | Bin 2117 -> 0 bytes
gtk/theme/Adwaita/Gemfile.lock | 13 --
18 files changed, 4 insertions(+), 1177 deletions(-)
---
diff --git a/gtk/gtkfilechooser.c b/gtk/gtkfilechooser.c
index 35de3b3..0a27b9c 100644
--- a/gtk/gtkfilechooser.c
+++ b/gtk/gtkfilechooser.c
@@ -387,7 +387,7 @@ gtk_file_chooser_default_init (GtkFileChooserInterface *iface)
g_param_spec_boolean ("local-only",
P_("Local Only"),
P_("Whether the selected file(s) should be
limited to local file: URLs"),
- FALSE,
+ TRUE,
GTK_PARAM_READWRITE));
g_object_interface_install_property (iface,
g_param_spec_object ("preview-widget",
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index 5c1ca1f..0805b13 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -185,6 +185,8 @@ _gtk_file_chooser_entry_init (GtkFileChooserEntry *chooser_entry)
GtkEntryCompletion *comp;
GtkCellRenderer *cell;
+ chooser_entry->local_only = TRUE;
+
g_object_set (chooser_entry, "truncate-multiline", TRUE, NULL);
comp = gtk_entry_completion_new ();
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 6a270ff..c323cb8 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -8622,7 +8622,7 @@ gtk_file_chooser_widget_init (GtkFileChooserWidget *impl)
impl->priv = gtk_file_chooser_widget_get_instance_private (impl);
priv = impl->priv;
- priv->local_only = FALSE;
+ priv->local_only = TRUE;
priv->preview_widget_active = TRUE;
priv->use_preview_label = TRUE;
priv->select_multiple = FALSE;
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index f3a19df..17ed7bd 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -1876,7 +1876,6 @@ on_address_entry_show_help_pressed (GtkPlacesView *view,
GtkPlacesViewPrivate *priv;
GdkRectangle rect;
-g_print ("show help\n");
priv = gtk_places_view_get_instance_private (view);
/* Setup the auxiliary popover's rectangle */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]