[evolution-rss] compiler cleanups
- From: Lucian Langa <lucilanga src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-rss] compiler cleanups
- Date: Fri, 3 Jul 2009 07:33:10 +0000 (UTC)
commit 8e02441fc1905d59f3a4315e3716e758dbc6e7a9
Author: Lucian Langa <lucilanga gnome org>
Date: Fri Jul 3 10:32:42 2009 +0300
compiler cleanups
src/rss-config-factory.c | 9 +++++----
src/rss.c | 4 +---
2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/rss-config-factory.c b/src/rss-config-factory.c
index d1e15a8..e8d8359 100644
--- a/src/rss-config-factory.c
+++ b/src/rss-config-factory.c
@@ -352,7 +352,7 @@ disable_widget_cb(GtkWidget *widget, GladeXML *data)
{
GtkWidget *authuser = (GtkWidget *)glade_xml_get_widget (data, "auth_user");
GtkWidget *authpass = (GtkWidget *)glade_xml_get_widget (data, "auth_pass");
- GtkWidget *useauth = (GtkWidget *)glade_xml_get_widget (data, "use_auth");
+ GtkToggleButton *useauth = (GtkToggleButton *)glade_xml_get_widget (data, "use_auth");
gboolean auth_enabled = gtk_toggle_button_get_active(useauth);
gtk_widget_set_sensitive(authuser, auth_enabled);
@@ -525,7 +525,7 @@ build_dialog_add(gchar *url, gchar *feed_text)
GtkWidget *authuser = (GtkWidget *)glade_xml_get_widget (gui, "auth_user");
GtkWidget *authpass = (GtkWidget *)glade_xml_get_widget (gui, "auth_pass");
- GtkWidget *useauth = (GtkWidget *)glade_xml_get_widget (gui, "use_auth");
+ GtkToggleButton *useauth = (GtkToggleButton *)glade_xml_get_widget (gui, "use_auth");
if (url && read_up(url)) {
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (useauth), 1);
@@ -2029,6 +2029,7 @@ void rss_folder_factory_abort (EPlugin *epl, EConfigTarget *target)
void rss_folder_factory_commit (EPlugin *epl, EConfigTarget *target)
{
+ const gchar *user = NULL, *pass = NULL;
add_feed *feed = (add_feed *)g_object_get_data((GObject *)epl, "add-feed");
gchar *url = (gchar *)g_object_get_data((GObject *)epl, "url");
gchar *ofolder = (gchar *)g_object_get_data((GObject *)epl, "ofolder");
@@ -2113,8 +2114,8 @@ void rss_folder_factory_commit (EPlugin *epl, EConfigTarget *target)
GtkWidget *authpass = (GtkWidget *)glade_xml_get_widget (feed->gui, "auth_pass");
GtkWidget *useauth = (GtkWidget *)glade_xml_get_widget (feed->gui, "use_auth");
- gchar *user = gtk_entry_get_text(GTK_ENTRY(authuser));
- gchar *pass = gtk_entry_get_text(GTK_ENTRY(authpass));
+ user = gtk_entry_get_text(GTK_ENTRY(authuser));
+ pass = gtk_entry_get_text(GTK_ENTRY(authpass));
gboolean auth_enabled = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (useauth));
if (user)
diff --git a/src/rss.c b/src/rss.c
index c285c1f..53adc53 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -564,7 +564,6 @@ textcb(NetStatusType status, gpointer statusdata, gpointer data)
void
user_pass_cb(RSS_AUTH *auth_info, gint response, GtkDialog *dialog)
{
- gchar *user = NULL, *pass = NULL;
switch (response) {
case GTK_RESPONSE_OK:
if (auth_info->user)
@@ -597,7 +596,7 @@ user_pass_cb(RSS_AUTH *auth_info, gint response, GtkDialog *dialog)
break;
}
soup_session_unpause_message(auth_info->session, auth_info->message);
- gtk_widget_destroy(dialog);
+ gtk_widget_destroy(GTK_WIDGET(dialog));
g_free(auth_info);
}
@@ -761,7 +760,6 @@ void
web_auth_dialog(RSS_AUTH *auth_info)
{
GtkDialog *dialog;
- guint resp;
if (!rf->hruser)
rf->hruser = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, g_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]