changeset 856:b389c4221c89

[gaim-migrate @ 866] More button fun. OH yeah, the linkifier knows what https:// is now, also. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 07 Sep 2000 21:55:55 +0000
parents 82673bb41e2f
children 41bfae606d39
files src/conversation.c src/util.c
diffstat 2 files changed, 10 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Thu Sep 07 17:53:35 2000 +0000
+++ b/src/conversation.c	Thu Sep 07 21:55:55 2000 +0000
@@ -1458,6 +1458,15 @@
 	gtk_widget_show(smiley_p);
 	gdk_bitmap_unref(mask);
 
+	fgcolorbtn = gtk_toolbar_append_element(GTK_TOOLBAR(toolbar),
+					    GTK_TOOLBAR_CHILD_TOGGLEBUTTON,
+					    NULL, _("Color"), _("Text Color"),
+				 	    _("Color"), fgcolor_p, GTK_SIGNAL_FUNC(toggle_color), c);
+	bgcolorbtn = gtk_toolbar_append_element(GTK_TOOLBAR(toolbar),
+					    GTK_TOOLBAR_CHILD_TOGGLEBUTTON,
+					    NULL, _("Color"), _("Background Color"),
+				 	    _("Color"), bgcolor_p, GTK_SIGNAL_FUNC(toggle_color), c);
+
 	bold = gtk_toolbar_append_element(GTK_TOOLBAR(toolbar),
 						GTK_TOOLBAR_CHILD_TOGGLEBUTTON, NULL,
 						_("Bold"), _("Bold Text"), _("Bold"), bold_p,
@@ -1493,14 +1502,6 @@
 						GTK_TOOLBAR_CHILD_TOGGLEBUTTON,
 					    NULL, _("Link"), _("Insert Link"),
 						_("Link"), link_p, GTK_SIGNAL_FUNC(toggle_link), c);                 
-	fgcolorbtn = gtk_toolbar_append_element(GTK_TOOLBAR(toolbar),
-					    GTK_TOOLBAR_CHILD_TOGGLEBUTTON,
-					    NULL, _("Color"), _("Text Color"),
-				 	    _("Color"), fgcolor_p, GTK_SIGNAL_FUNC(toggle_color), c);
-	bgcolorbtn = gtk_toolbar_append_element(GTK_TOOLBAR(toolbar),
-					    GTK_TOOLBAR_CHILD_TOGGLEBUTTON,
-					    NULL, _("Color"), _("Background Color"),
-				 	    _("Color"), bgcolor_p, GTK_SIGNAL_FUNC(toggle_color), c);
 	wood = gtk_toolbar_append_element(GTK_TOOLBAR(toolbar),
 					    GTK_TOOLBAR_CHILD_TOGGLEBUTTON,
 					    NULL, _("Logging"), _("Enable logging"),
--- a/src/util.c	Thu Sep 07 17:53:35 2000 +0000
+++ b/src/util.c	Thu Sep 07 21:55:55 2000 +0000
@@ -140,7 +140,7 @@
                                 if (!(*c))
                                         break;
                         }
-                } else if (!strncasecmp(c, "http://", 7)) {
+                } else if ( (!strncasecmp(c, "http://", 7) || (!strncasecmp(c, "https://", 8)))) {
                         t = c;
                         while(1) {
                                 if (badchar(*t)) {