diff options
author | Chris Toshok <toshok@ximian.com> | 2002-08-28 17:21:45 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-08-28 17:21:45 +0800 |
commit | d98575e489383d801398e62a0ad2f7f6bae43ba2 (patch) | |
tree | 7ca96dd1b44f5aa32c4476cc5a51f969e7f13ae7 /addressbook/gui | |
parent | 088f9fb35d14eee857a335ace7e3f1fd55b3cf79 (diff) | |
download | gsoc2013-evolution-d98575e489383d801398e62a0ad2f7f6bae43ba2.tar gsoc2013-evolution-d98575e489383d801398e62a0ad2f7f6bae43ba2.tar.gz gsoc2013-evolution-d98575e489383d801398e62a0ad2f7f6bae43ba2.tar.bz2 gsoc2013-evolution-d98575e489383d801398e62a0ad2f7f6bae43ba2.tar.lz gsoc2013-evolution-d98575e489383d801398e62a0ad2f7f6bae43ba2.tar.xz gsoc2013-evolution-d98575e489383d801398e62a0ad2f7f6bae43ba2.tar.zst gsoc2013-evolution-d98575e489383d801398e62a0ad2f7f6bae43ba2.zip |
[ oops, merged the .h and .glade file back to the HEAD from the 1-0
2002-08-28 Chris Toshok <toshok@ximian.com>
[ oops, merged the .h and .glade file back to the HEAD from the
1-0 branch, but missed the .c file. ]
* gui/component/select-names/e-select-names.c (status_message): set
the status label's text.
(e_select_names_init): get the status message widget from the
glade ui.
svn path=/trunk/; revision=17889
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index 791293ae35..193ec51ff5 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -415,6 +415,15 @@ update_query (GtkWidget *widget, ESelectNames *e_select_names) } static void +status_message (EAddressbookModel *model, const gchar *message, ESelectNames *e_select_names) +{ + if (message == NULL) + gtk_label_set_text (GTK_LABEL (e_select_names->status_message), ""); + else + gtk_label_set_text (GTK_LABEL (e_select_names->status_message), message); +} + +static void categories_changed (GtkWidget *widget, gint value, ESelectNames *e_select_names) { update_query (widget, e_select_names); @@ -516,6 +525,13 @@ e_select_names_init (ESelectNames *e_select_names) e_select_names->adapter = gtk_object_get_data(GTK_OBJECT(e_select_names->table), "adapter"); e_select_names->without = gtk_object_get_data(GTK_OBJECT(e_select_names->table), "without"); + e_select_names->status_message = glade_xml_get_widget (gui, "status-message"); + if (e_select_names->status_message && !GTK_IS_LABEL (e_select_names->status_message)) + e_select_names->status_message = NULL; + if (e_select_names->status_message) + gtk_signal_connect (GTK_OBJECT (e_select_names->model), "status_message", + GTK_SIGNAL_FUNC (status_message), e_select_names); + e_select_names->categories = glade_xml_get_widget (gui, "custom-categories"); if (e_select_names->categories && !E_IS_CATEGORIES_MASTER_LIST_OPTION_MENU (e_select_names->categories)) e_select_names->categories = NULL; |