Revision: 373 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=373&view=rev Author: frlan Date: 2009-01-08 12:35:31 +0000 (Thu, 08 Jan 2009)
Log Message: ----------- GeanyLipsum: Grab length from dialog
Modified Paths: -------------- trunk/geanylipsum/src/geanylipsum.c
Modified: trunk/geanylipsum/src/geanylipsum.c =================================================================== --- trunk/geanylipsum/src/geanylipsum.c 2009-01-08 12:35:05 UTC (rev 372) +++ trunk/geanylipsum/src/geanylipsum.c 2009-01-08 12:35:31 UTC (rev 373) @@ -107,6 +107,7 @@ GeanyDocument *doc = NULL; GeanyFiletype *ft = NULL; gboolean toggled = FALSE; + int length = 0;
tooltip = gtk_tooltips_new();
@@ -182,6 +183,10 @@ type = PLAIN_LIPSUM; }
+ /* Checking for length of string that should be inserted */ + length = gtk_spin_button_get_value_as_int( + GTK_SPIN_BUTTON(spin)); + gtk_widget_destroy(dialog);
insert_string(LOREMIPSUM);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.