Mercurial > pidgin.yaz
diff pidgin/gtkaccount.c @ 22895:01e375e9b681
disapproval of revision '8086f2cffaab6ed17431381836b9227a64a53270'
This really needs to happen with the appropriate magic necessary to allow
adding newer functions when necessary without forcing a bump in the
major. I am not necessarily succumbing to 'fear of incrementing a version
number' or anything, I just don't think this particular feature is
important or useful enough. I would be interested to see if there's still
any confusion left after the change from 'Screenname' to 'Username'.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 30 Apr 2008 11:27:17 +0000 |
parents | 0be4c1f0fa55 |
children | 3fee7e01e51c |
line wrap: on
line diff
--- a/pidgin/gtkaccount.c Wed Apr 30 03:24:35 2008 +0000 +++ b/pidgin/gtkaccount.c Wed Apr 30 11:27:17 2008 +0000 @@ -255,16 +255,6 @@ } } -static gboolean -screenname_focus_cb(GtkWidget *widget, GdkEventFocus *event, AccountPrefsDialog *dialog) -{ - if (!strcmp(gtk_entry_get_text(GTK_ENTRY(widget)),dialog->prpl_info->account_login_label())) { - gtk_entry_set_text(GTK_ENTRY(widget),""); - gtk_widget_modify_text(widget,GTK_STATE_NORMAL,NULL); - } - return FALSE; -} - static void screenname_changed_cb(GtkEntry *entry, AccountPrefsDialog *dialog) { @@ -280,23 +270,6 @@ } } -static gboolean -screenname_nofocus_cb(GtkWidget *widget, GdkEventFocus *event, AccountPrefsDialog *dialog) -{ - GdkColor color = {0, 34952, 35466, 34181}; - if (*gtk_entry_get_text(GTK_ENTRY(widget)) == '\0') { - /* We have to avoid hitting the screenname_changed_cb function - * because it enables buttons we don't want enabled yet ;) - */ - g_signal_handlers_block_by_func(widget, G_CALLBACK(screenname_changed_cb), dialog); - gtk_entry_set_text(GTK_ENTRY(widget),dialog->prpl_info->account_login_label()); - /* Make sure we can hit it again */ - g_signal_handlers_unblock_by_func(widget, G_CALLBACK(screenname_changed_cb), dialog); - gtk_widget_modify_text(widget,GTK_STATE_NORMAL,&color); - } - return FALSE; -} - static void icon_filesel_choose_cb(const char *filename, gpointer data) { @@ -391,7 +364,6 @@ GList *user_splits; GList *l, *l2; char *username = NULL; - GdkColor color = {0, 34952, 35466, 34181}; if (dialog->protocol_menu != NULL) { @@ -438,15 +410,6 @@ add_pref_box(dialog, vbox, _("Screen _name:"), dialog->screenname_entry); - if (dialog->prpl_info->account_login_label) { - gtk_entry_set_text(dialog->screenname_entry,dialog->prpl_info->account_login_label()); - g_signal_connect(G_OBJECT(dialog->screenname_entry), "focus-in-event", - G_CALLBACK(screenname_focus_cb), dialog); - g_signal_connect(G_OBJECT(dialog->screenname_entry), "focus-out-event", - G_CALLBACK(screenname_nofocus_cb), dialog); - gtk_widget_modify_text(dialog->screenname_entry,GTK_STATE_NORMAL,&color); - } - g_signal_connect(G_OBJECT(dialog->screenname_entry), "changed", G_CALLBACK(screenname_changed_cb), dialog);