[evolution-rss] Bug 587775 – Evolution crashes when adding a RSS feed from localhost or 127.0.0.1
- From: Lucian Langa <lucilanga src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-rss] Bug 587775 – Evolution crashes when adding a RSS feed from localhost or 127.0.0.1
- Date: Thu, 9 Jul 2009 17:38:50 +0000 (UTC)
commit bfdca364b38a7e129606bb681b33d06ceb591985
Author: Lucian Langa <lucilanga gnome org>
Date: Thu Jul 9 20:38:39 2009 +0300
Bug 587775 â?? Evolution crashes when adding a RSS feed from localhost or 127.0.0.1
src/misc.c | 3 +++
src/rss-config-factory.c | 1 +
src/rss-ui.glade | 14 +++++++-------
3 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index 2b32723..1a03e4b 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -98,6 +98,9 @@ sanitize_url(gchar *text)
{
gchar *out;
gchar *tmptext = g_strdup(text);
+ if (strcasestr(text, "file://"))
+ return tmptext;
+
if (strcasestr(text, "feed://"))
tmptext = strextr(text, "feed://");
else if (strcasestr(text, "feed//"))
diff --git a/src/rss-config-factory.c b/src/rss-config-factory.c
index 8b3143e..ef353a8 100644
--- a/src/rss-config-factory.c
+++ b/src/rss-config-factory.c
@@ -538,6 +538,7 @@ build_dialog_add(gchar *url, gchar *feed_text)
g_signal_connect(useauth, "toggled", G_CALLBACK(disable_widget_cb), gui);
GtkWidget *ok = (GtkWidget *)glade_xml_get_widget (gui, "ok_button");
+ /*Gtk-CRITICAL **: gtk_box_pack: assertion `child->parent == NULL' failed*/
gtk_dialog_add_action_widget (GTK_DIALOG (dialog1), ok, GTK_RESPONSE_OK);
GTK_WIDGET_SET_FLAGS (ok, GTK_CAN_DEFAULT);
diff --git a/src/rss-ui.glade b/src/rss-ui.glade
index 5f183f2..74c4f3e 100644
--- a/src/rss-ui.glade
+++ b/src/rss-ui.glade
@@ -407,7 +407,7 @@
<widget class="GtkSpinButton" id="spinbutton1">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="adjustment">1 1 100 1 10 10</property>
+ <property name="adjustment">1 1 100 1 10 0</property>
<property name="climb_rate">1</property>
<property name="numeric">True</property>
</widget>
@@ -572,7 +572,7 @@
<widget class="GtkSpinButton" id="port_proxy">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="adjustment">0 0 65535 1 10 10</property>
+ <property name="adjustment">0 0 65535 1 10 0</property>
<property name="climb_rate">1</property>
</widget>
<packing>
@@ -947,9 +947,9 @@
<property name="modal">True</property>
<property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property>
- <property name="show_hidden">True</property>
- <property name="action">save</property>
<property name="local_only">False</property>
+ <property name="action">save</property>
+ <property name="show_hidden">True</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="vbox26">
<property name="visible">True</property>
@@ -1252,7 +1252,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">●</property>
- <property name="adjustment">0 0 100 1 10 10</property>
+ <property name="adjustment">0 0 100 1 10 0</property>
<property name="climb_rate">1</property>
</widget>
<packing>
@@ -1353,7 +1353,7 @@ days</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">●</property>
- <property name="adjustment">10 1 10000 1 10 10</property>
+ <property name="adjustment">10 1 10000 1 10 0</property>
<property name="climb_rate">1</property>
</widget>
<packing>
@@ -1404,7 +1404,7 @@ days</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">●</property>
- <property name="adjustment">10 1 9999 1 10 10</property>
+ <property name="adjustment">10 1 9999 1 10 0</property>
<property name="climb_rate">1</property>
</widget>
<packing>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]