[Commits] fancy_viewer.c 1.1.2.55 1.1.2.56

iwkse at claws-mail.org iwkse at claws-mail.org
Wed Oct 10 14:16:24 CEST 2012


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

Modified Files:
      Tag: gtk2
	fancy_viewer.c 
Log Message:
2012-10-10 [iwkse]	0.9.16cvs4

	* src/fancy_viewer.c
			Ease translation work
			patch by Andreas Ronnquist

Index: fancy_viewer.c
===================================================================
RCS file: /home/claws-mail/plugins/fancy/src/Attic/fancy_viewer.c,v
retrieving revision 1.1.2.55
retrieving revision 1.1.2.56
diff -u -d -r1.1.2.55 -r1.1.2.56
--- fancy_viewer.c	7 Jul 2012 15:18:53 -0000	1.1.2.55
+++ fancy_viewer.c	10 Oct 2012 12:16:22 -0000	1.1.2.56
@@ -94,6 +94,9 @@
 {
 	FancyViewer *viewer = (FancyViewer *) _viewer;
 	debug_print("fancy_get_widget: %p\n", viewer->vbox);
+	gchar *value;
+	g_object_get(viewer->settings, "user-agent", &value, NULL);
+	debug_print("***************************** %s *****************************\n", value);
 	viewer->load_page = FALSE;
 
 	return GTK_WIDGET(viewer->vbox);
@@ -418,7 +421,7 @@
 	}
 	if (fancy_prefs.block_extern_content && !viewer->override_prefs_block_extern_content) {
 		if (viewer->load_page) {
-			gchar *message = g_strconcat(_("Navigation to "), viewer->cur_link, _(" blocked"), NULL);
+			gchar *message = g_strdup_printf(_("Navigation to %s blocked"), viewer->cur_link);
 			fancy_show_notice(viewer, message);
 			g_free(message);
 			return WEBKIT_NAVIGATION_RESPONSE_IGNORE; 
@@ -1039,6 +1042,9 @@
     
 	viewer->settings = webkit_web_settings_new();    
 	g_object_set(viewer->settings, "user-agent", "Fancy Viewer", NULL);
+	gchar *value;
+	g_object_get(viewer->settings, "user-agent", &value, NULL);
+	debug_print("***************************** %s *****************************\n", value);
 	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