aboutsummaryrefslogtreecommitdiffstats
path: root/mail/subscribe-control.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-09-29 11:09:26 +0800
committerChris Toshok <toshok@src.gnome.org>2000-09-29 11:09:26 +0800
commite20e97c2081eb38854c93495a41d7315259bc715 (patch)
tree473f02750bb06966cdc45f2723a96a8dcca68128 /mail/subscribe-control.c
parent338c81f70a92560970f7a6c542c38a3839cc748c (diff)
downloadgsoc2013-evolution-e20e97c2081eb38854c93495a41d7315259bc715.tar
gsoc2013-evolution-e20e97c2081eb38854c93495a41d7315259bc715.tar.gz
gsoc2013-evolution-e20e97c2081eb38854c93495a41d7315259bc715.tar.bz2
gsoc2013-evolution-e20e97c2081eb38854c93495a41d7315259bc715.tar.lz
gsoc2013-evolution-e20e97c2081eb38854c93495a41d7315259bc715.tar.xz
gsoc2013-evolution-e20e97c2081eb38854c93495a41d7315259bc715.tar.zst
gsoc2013-evolution-e20e97c2081eb38854c93495a41d7315259bc715.zip
added prototype.
2000-09-28 Chris Toshok <toshok@helixcode.com> * subscribe-control.h (subscribe_search): added prototype. * subscribe-control.c (subscribe_search): new function. * subscribe-control-factory.c (make_folder_search_widget): new function, to add search widget to toolbar. (control_activate): create the search widget and add it to the toolbar. svn path=/trunk/; revision=5632
Diffstat (limited to 'mail/subscribe-control.c')
-rw-r--r--mail/subscribe-control.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/mail/subscribe-control.c b/mail/subscribe-control.c
index 4e1f85eff2..f3cb52f284 100644
--- a/mail/subscribe-control.c
+++ b/mail/subscribe-control.c
@@ -13,6 +13,7 @@
#include "e-util/e-html-utils.h"
#include <gtkhtml/gtkhtml.h>
#include <gal/util/e-util.h>
+#include <gal/widgets/e-unicode.h>
#include <gal/e-table/e-cell-text.h>
#include <gal/e-table/e-cell-tree.h>
#include <gal/e-table/e-cell-toggle.h>
@@ -92,8 +93,6 @@ subscribe_folder (GtkWidget *widget, gpointer user_data)
{
SubscribeControl *sc = SUBSCRIBE_CONTROL (user_data);
- printf ("subscribe_folder called\n");
-
e_table_selected_row_foreach (E_TABLE_SCROLLED(sc->table)->table,
subscribe_folder_foreach, sc);
}
@@ -119,8 +118,6 @@ unsubscribe_folder (GtkWidget *widget, gpointer user_data)
{
SubscribeControl *sc = SUBSCRIBE_CONTROL (user_data);
- printf ("unsubscribe_folder called\n");
-
e_table_selected_row_foreach (E_TABLE_SCROLLED(sc->table)->table,
unsubscribe_folder_foreach, sc);
}
@@ -131,6 +128,16 @@ subscribe_refresh_list (GtkWidget *widget, gpointer user_data)
printf ("subscribe_refresh_list\n");
}
+void
+subscribe_search (GtkWidget *widget, gpointer user_data)
+{
+ char* search_pattern = e_utf8_gtk_entry_get_text(GTK_ENTRY(widget));
+
+ printf ("subscribe_search (%s)\n", search_pattern);
+
+ g_free (search_pattern);
+}
+
gboolean
subscribe_control_set_uri (SubscribeControl *subscribe_control,
const char *uri)
@@ -367,7 +374,8 @@ subscribe_control_gui_init (SubscribeControl *sc)
GTK_FILL | GTK_EXPAND,
0, 0);
- gtk_widget_show_all (GTK_WIDGET(sc));
+ gtk_widget_show (GTK_WIDGET (sc->table));
+ gtk_widget_show (GTK_WIDGET(sc));
}
static void