diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-04-24 11:35:38 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-04-24 12:00:54 -0400 |
commit | a36ec1c8d2d76612cc7c8f7d015cf9c51a0f300c (patch) | |
tree | b4b4deecb4efa24c54c47372f8ca1117656cd76e /libnautilus-private/nautilus-entry.c | |
parent | fbcfa7c445b066dd35bec1dbd61445400aa4e73e (diff) | |
download | nautilus-a36ec1c8d2d76612cc7c8f7d015cf9c51a0f300c.tar.gz |
entry: remove now unused user_changed signal
Diffstat (limited to 'libnautilus-private/nautilus-entry.c')
-rw-r--r-- | libnautilus-private/nautilus-entry.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/libnautilus-private/nautilus-entry.c b/libnautilus-private/nautilus-entry.c index 889f86b35..9e1e3cf60 100644 --- a/libnautilus-private/nautilus-entry.c +++ b/libnautilus-private/nautilus-entry.c @@ -34,14 +34,12 @@ #include <glib/gi18n.h> struct NautilusEntryDetails { - gboolean user_edit; gboolean special_tab_handling; guint select_idle_id; }; enum { - USER_CHANGED, SELECTION_CHANGED, LAST_SIGNAL }; @@ -59,8 +57,6 @@ static void nautilus_entry_init (NautilusEntry *entry) { entry->details = g_new0 (NautilusEntryDetails, 1); - - entry->details->user_edit = TRUE; } GtkWidget * @@ -246,10 +242,7 @@ nautilus_entry_set_text (NautilusEntry *entry, const gchar *text) { g_return_if_fail (NAUTILUS_IS_ENTRY (entry)); - entry->details->user_edit = FALSE; gtk_entry_set_text (GTK_ENTRY (entry), text); - entry->details->user_edit = TRUE; - g_signal_emit (entry, signals[SELECTION_CHANGED], 0); } @@ -297,15 +290,6 @@ static void nautilus_entry_insert_text (GtkEditable *editable, const gchar *text, int length, int *position) { - NautilusEntry *entry; - - entry = NAUTILUS_ENTRY(editable); - - /* Fire off user changed signals */ - if (entry->details->user_edit) { - g_signal_emit (editable, signals[USER_CHANGED], 0); - } - parent_editable_interface->insert_text (editable, text, length, position); g_signal_emit (editable, signals[SELECTION_CHANGED], 0); @@ -314,15 +298,6 @@ nautilus_entry_insert_text (GtkEditable *editable, const gchar *text, static void nautilus_entry_delete_text (GtkEditable *editable, int start_pos, int end_pos) { - NautilusEntry *entry; - - entry = NAUTILUS_ENTRY (editable); - - /* Fire off user changed signals */ - if (entry->details->user_edit) { - g_signal_emit (editable, signals[USER_CHANGED], 0); - } - parent_editable_interface->delete_text (editable, start_pos, end_pos); g_signal_emit (editable, signals[SELECTION_CHANGED], 0); @@ -382,14 +357,6 @@ nautilus_entry_class_init (NautilusEntryClass *class) gobject_class->finalize = nautilus_entry_finalize; /* Set up signals */ - signals[USER_CHANGED] = g_signal_new - ("user_changed", - G_TYPE_FROM_CLASS (class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (NautilusEntryClass, user_changed), - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); signals[SELECTION_CHANGED] = g_signal_new ("selection_changed", G_TYPE_FROM_CLASS (class), |