summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Westman <james@flyingpimonster.net>2020-12-31 15:30:06 -0600
committerJames Westman <james@jwestman.net>2021-02-12 17:23:52 -0600
commitbaf37c3102d551a7a2e7e15fbb11ba2de519d2ee (patch)
tree9de1b3d4b393c72588fde6a2eaae8da5684972ae /src
parent3ce2a16161272afd3f62086d478954e54a60a0ef (diff)
downloadnautilus-baf37c3102d551a7a2e7e15fbb11ba2de519d2ee.tar.gz
location-entry: Remove folder icon
It hasn't been useful for quite a while, and messes with the visual alignment of the GtkEntryCompletion.
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-location-entry.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/nautilus-location-entry.c b/src/nautilus-location-entry.c
index 05bc6fb15..f47c32c97 100644
--- a/src/nautilus-location-entry.c
+++ b/src/nautilus-location-entry.c
@@ -54,12 +54,6 @@ enum
NAUTILUS_DND_NTARGETS
};
-static const GtkTargetEntry drag_types [] =
-{
- { NAUTILUS_DND_URI_LIST_TYPE, 0, NAUTILUS_DND_URI_LIST },
- { NAUTILUS_DND_TEXT_PLAIN_TYPE, 0, NAUTILUS_DND_TEXT_PLAIN },
-};
-
static const GtkTargetEntry drop_types [] =
{
{ NAUTILUS_DND_URI_LIST_TYPE, 0, NAUTILUS_DND_URI_LIST },
@@ -863,19 +857,12 @@ static void
nautilus_location_entry_init (NautilusLocationEntry *entry)
{
NautilusLocationEntryPrivate *priv;
- GtkTargetList *targetlist;
priv = nautilus_location_entry_get_instance_private (entry);
priv->completer = g_filename_completer_new ();
g_filename_completer_set_dirs_only (priv->completer, TRUE);
- gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry), GTK_ENTRY_ICON_PRIMARY, "folder-symbolic");
- gtk_entry_set_icon_activatable (GTK_ENTRY (entry), GTK_ENTRY_ICON_PRIMARY, FALSE);
- targetlist = gtk_target_list_new (drag_types, G_N_ELEMENTS (drag_types));
- gtk_entry_set_icon_drag_source (GTK_ENTRY (entry), GTK_ENTRY_ICON_PRIMARY, targetlist, GDK_ACTION_COPY | GDK_ACTION_MOVE | GDK_ACTION_LINK);
- gtk_target_list_unref (targetlist);
-
nautilus_location_entry_set_secondary_action (entry,
NAUTILUS_LOCATION_ENTRY_ACTION_CLEAR);