trim uri before sending to the statusbar
authorPaul Mangan <paul@claws-mail.org>
Mon, 1 Sep 2003 07:31:32 +0000 (07:31 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 1 Sep 2003 07:31:32 +0000 (07:31 +0000)
ChangeLog.claws
configure.ac
src/textview.c

index c91a0d4..2d4ceb1 100644 (file)
@@ -1,3 +1,11 @@
+2003-09-01 [paul]      0.9.4claws49
+
+       * src/textview.c
+               trim uri before sending to the statusbar
+               fixes Bug 275 'Clicking on long URL wrapped onto two lines
+               in the message window causes main S-C window to enlarge 
+               past screen edges'
+
 2003-09-01 [paul]      0.9.4claws48
 
        * sync with 0.9.4cvs12
index 5adc067..7a56bfe 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=4
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=48
+EXTRA_VERSION=49
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index b40966a..f64d577 100644 (file)
@@ -1847,6 +1847,9 @@ static gint textview_button_released(GtkWidget *widget, GdkEventButton *event,
 
                        if (textview->cur_pos >= uri->start &&
                            textview->cur_pos <= uri->end) {
+                               gchar *trimmed_uri;
+                               
+                               trimmed_uri = trim_string(uri->uri, 60);
                                /* single click: display url in statusbar */
                                if (event->button == 1 && textview->last_buttonpress != GDK_2BUTTON_PRESS) {
                                        if (textview->messageview->mainwin) {
@@ -1861,7 +1864,7 @@ static gint textview_button_released(GtkWidget *widget, GdkEventButton *event,
                                                textview->show_url_msgid = gtk_statusbar_push(
                                                                GTK_STATUSBAR(textview->messageview->mainwin->statusbar),
                                                                textview->messageview->mainwin->folderview_cid,
-                                                               uri->uri);
+                                                               trimmed_uri);
                                                textview->show_url_timeout_tag = gtk_timeout_add( 4000, show_url_timeout_cb, textview );
                                                gtkut_widget_wait_for_draw(textview->messageview->mainwin->hbox_stat);
                                        }