diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-11-08 07:09:45 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-11-08 07:09:45 +0800 |
commit | 59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a (patch) | |
tree | 722db509bf8b725208a18c548293be703abaaad3 /filter/filter-source.c | |
parent | 0783b601b0f6cc882ca6d4f22a6ac052d3658ba4 (diff) | |
download | gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.tar.gz gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.tar.zst gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.zip |
Use a GtkDialog instead of a GnomeDialog for reporting errors.
2002-11-07 Jeffrey Stedfast <fejj@ximian.com>
* vfolder-rule.c (validate): Use a GtkDialog instead of a
GnomeDialog for reporting errors.
* rule-editor.c (rule_add): Use a GtkDialog instead of
GnomeDialog.
(rule_edit): Same.
(add_editor_response): Use a GtkMessageDialog for the error
reporting instead of a GnomeDialog.
(edit_editor_response): Same.
* rule-context.c (rule_context_add_rule_gui): Use a GtkDialog
instead of a GnomeDialog.
* filter-rule.c (validate): Use GtkDialog instead of GnomeDialog
here.
* filter-input.c (validate): Use GtkDialog instead of GnomeDialog
here.
* filter-folder.c (validate): Use GtkDialog instead of GnomeDialog
here.
* filter-file.c (validate): Use GtkDialog instead of GnomeDialog
here.
* rule-editor.c: Subclass GtkDialog instead of GnomeDialog.
* filter-datespec.c (validate): Use GtkDialog instead of
GnomeDialog.
(button_clicked): Same.
svn path=/trunk/; revision=18651
Diffstat (limited to 'filter/filter-source.c')
-rw-r--r-- | filter/filter-source.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/filter/filter-source.c b/filter/filter-source.c index 2264af49dc..ff63eb0920 100644 --- a/filter/filter-source.c +++ b/filter/filter-source.c @@ -29,15 +29,8 @@ #include "filter-source.h" #include <gtk/gtk.h> -#include <gnome.h> #include <e-util/e-url.h> #include <e-util/e-sexp.h> -#include <bonobo/bonobo-object.h> -#include <bonobo/bonobo-generic-factory.h> -#include <bonobo/bonobo-context.h> -#include <bonobo/bonobo-moniker-util.h> -#include <bonobo/bonobo-exception.h> -#include <bonobo-conf/bonobo-config-database.h> #include <camel/camel-url.h> @@ -232,9 +225,9 @@ clone (FilterElement *fe) } static void -source_changed (GtkWidget *w, FilterSource *fs) +source_changed (GtkWidget *item, FilterSource *fs) { - SourceInfo *info = (SourceInfo *) g_object_get_data (w, "source"); + SourceInfo *info = (SourceInfo *) g_object_get_data ((GObject *) item, "source"); g_free (fs->priv->current_url); fs->priv->current_url = g_strdup (info->url); @@ -276,8 +269,8 @@ get_widget (FilterElement *fe) item = gtk_menu_item_new_with_label (label); g_free (label); - g_object_set_data (item, "source", info); - g_signal_connect (item, "activate", source_changed, fs); + g_object_set_data ((GObject *) item, "source", info); + g_signal_connect (item, "activate", GTK_SIGNAL_FUNC (source_changed), fs); gtk_menu_append (GTK_MENU (menu), item); gtk_widget_show (item); @@ -344,6 +337,7 @@ filter_source_add_source (FilterSource *fs, const char *account_name, const char static void filter_source_get_sources (FilterSource *fs) { +#if 0 Bonobo_ConfigDatabase db; CORBA_Environment ev; int i, len; @@ -398,4 +392,5 @@ filter_source_get_sources (FilterSource *fs) g_free (addr); g_free (uri); } +#endif } |