[nautilus] entry: remove now unused user_changed signal
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] entry: remove now unused user_changed signal
- Date: Tue, 24 Apr 2012 16:01:59 +0000 (UTC)
commit a36ec1c8d2d76612cc7c8f7d015cf9c51a0f300c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Apr 24 11:35:38 2012 -0400
entry: remove now unused user_changed signal
libnautilus-private/nautilus-entry.c | 33 ---------------------------------
libnautilus-private/nautilus-entry.h | 1 -
2 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/libnautilus-private/nautilus-entry.c b/libnautilus-private/nautilus-entry.c
index 889f86b..9e1e3cf 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),
diff --git a/libnautilus-private/nautilus-entry.h b/libnautilus-private/nautilus-entry.h
index 784b028..be2a6db 100644
--- a/libnautilus-private/nautilus-entry.h
+++ b/libnautilus-private/nautilus-entry.h
@@ -53,7 +53,6 @@ typedef struct {
typedef struct {
GtkEntryClass parent_class;
- void (*user_changed) (NautilusEntry *entry);
void (*selection_changed) (NautilusEntry *entry);
} NautilusEntryClass;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]