[Commits] fancy_viewer.c 1.1.2.52 1.1.2.53 fancy_prefs.c 1.1.2.19 1.1.2.20

iwkse at claws-mail.org iwkse at claws-mail.org
Tue Jun 5 06:53:11 CEST 2012


Update of /home/claws-mail/plugins/fancy/src
In directory srv:/tmp/cvs-serv9095/src

Modified Files:
      Tag: gtk2
	fancy_viewer.c fancy_prefs.c 
Log Message:
2012-06-05 [iwkse]	0.9.15cvs4

	* src/fancy_viewer.c
	* src/fancy_prefs.c
			Set the user-agent;
			disable open link with external browser when block
			external content is checked;

Index: fancy_prefs.c
===================================================================
RCS file: /home/claws-mail/plugins/fancy/src/Attic/fancy_prefs.c,v
retrieving revision 1.1.2.19
retrieving revision 1.1.2.20
diff -u -d -r1.1.2.19 -r1.1.2.20
--- fancy_prefs.c	6 Jan 2012 14:22:17 -0000	1.1.2.19
+++ fancy_prefs.c	5 Jun 2012 04:53:09 -0000	1.1.2.20
@@ -43,6 +43,7 @@
 FancyPrefs fancy_prefs;
 
 static void prefs_set_proxy_entry_sens(GtkWidget *button, GtkEntry *entry_str);
+static void prefs_set_block_external_sens(GtkWidget *button, GtkWidget *open_external);
 #ifdef HAVE_LIBSOUP_GNOME    
 static void prefs_disable_fancy_proxy(GtkWidget *checkbox, GtkWidget *block);
 #endif
@@ -205,6 +206,8 @@
 	checkbox5 = gtk_check_button_new_with_label(_("Open links with external browser"));
 	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbox5),
 								 fancy_prefs.open_external);
+	g_signal_connect(G_OBJECT(checkbox2), "toggled",
+					 G_CALLBACK(prefs_set_block_external_sens), checkbox5);
 	gtk_box_pack_start(GTK_BOX(vbox), checkbox5, FALSE, FALSE, 0);
 	gtk_widget_show(checkbox5);
 
@@ -225,6 +228,10 @@
 	gtk_widget_set_sensitive(GTK_WIDGET(entry_str), 
 							   gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)));
 }
+static void prefs_set_block_external_sens(GtkWidget *button, GtkWidget *open_external) {
+	gtk_widget_set_sensitive(open_external, 
+							   !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)));
+}
 #ifdef HAVE_LIBSOUP_GNOME    
 static void prefs_disable_fancy_proxy(GtkWidget *checkbox, GtkWidget *block) {
 	gboolean toggle = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkbox));

Index: fancy_viewer.c
===================================================================
RCS file: /home/claws-mail/plugins/fancy/src/Attic/fancy_viewer.c,v
retrieving revision 1.1.2.52
retrieving revision 1.1.2.53
diff -u -d -r1.1.2.52 -r1.1.2.53
--- fancy_viewer.c	18 Dec 2011 03:33:55 -0000	1.1.2.52
+++ fancy_viewer.c	5 Jun 2012 04:53:09 -0000	1.1.2.53
@@ -1036,6 +1036,7 @@
 	}
     
 	viewer->settings = webkit_web_settings_new();    
+	g_object_set(viewer->settings, "user-agent", "Fancy Viewer", NULL);
 	viewer->scrollwin = gtk_scrolled_window_new(NULL, NULL);
 	viewer->tag = -1;
 	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(viewer->scrollwin), 



More information about the Commits mailing list