Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /src/post.c [38f5be] .. [dba5ed] Maximize Restore

  Switch to side-by-side view

--- a/src/post.c
+++ b/src/post.c
@@ -569,10 +569,10 @@
 	sprintf (contents, "%.*s", param->size, (char *)param_p);
 	gtk_entry_set_text (GTK_ENTRY(widget), contents);
 	g_object_set_data (G_OBJECT(widget), "post", info);
-	g_signal_connect (G_OBJECT(widget), "insert-text",
-			  G_CALLBACK(text_insert_cb), NULL);
-	g_signal_connect (G_OBJECT(widget), "focus-out-event",
-			  G_CALLBACK(char_entry_cb), (gpointer)param);
+	g_object_connect (G_OBJECT(widget),
+		"signal::insert-text", G_CALLBACK(text_insert_cb), NULL,
+		"signal::focus-out-event", G_CALLBACK(char_entry_cb), (gpointer)param,
+		NULL);
       }
       break;
 
@@ -608,7 +608,7 @@
     size_t p = strlen (helptext);
 
     /* lose trailing whitespace (and control codes) */
-    while (p >= 0 && helptext[p] < 33)
+    while (helptext[p] < 33)
       --p;
     helptext[p + 1] = 0;