]> granicus.if.org Git - transmission/commitdiff
(trunk, gtk) #5089 'Open-by-URL doesn't automatically paste URLs/magnet links from...
authorJordan Lee <jordan@transmissionbt.com>
Sat, 13 Oct 2012 16:47:26 +0000 (16:47 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 13 Oct 2012 16:47:26 +0000 (16:47 +0000)
gtk/my-valgrind.sh
gtk/util.c

index 698eb34897d63db162964d13df3d7ae6cc67a752..146b7c02f5c702d5337d7d2a2e722ecc6f8ebab8 100755 (executable)
@@ -3,4 +3,4 @@ export G_SLICE=always-malloc
 export G_DEBUG=gc-friendly
 export GLIBCXX_FORCE_NEW=1
 #valgrind --tool=cachegrind ./transmission-gtk -p -g /tmp/transmission-test 2>&1 | tee runlog
-valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=48 --log-file=x-valgrind --show-reachable=no ./transmission-gtk -g /tmp/transmission-test -p 2>&1 | tee runlog
+valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=48 --log-file=x-valgrind --show-reachable=no ./transmission-gtk -p 2>&1 | tee runlog
index b64769afc063eb1f2de5f66018917e5c9d17a7b1..f94d112016c3742279f9b9ac1e9d2af0f49fa194 100644 (file)
@@ -586,8 +586,8 @@ gtr_paste_clipboard_url_into_entry( GtkWidget * e )
   size_t i;
 
   char * text[] = {
-    gtk_clipboard_wait_for_text( gtk_clipboard_get( GDK_SELECTION_PRIMARY ) ),
-    gtk_clipboard_wait_for_text( gtk_clipboard_get( GDK_SELECTION_CLIPBOARD ) )
+    g_strstrip( gtk_clipboard_wait_for_text( gtk_clipboard_get( GDK_SELECTION_PRIMARY ) ) ),
+    g_strstrip( gtk_clipboard_wait_for_text( gtk_clipboard_get( GDK_SELECTION_CLIPBOARD ) ) )
   };
 
   for( i=0; i<G_N_ELEMENTS(text); ++i ) {