SF.net SVN: geany-plugins:[372] trunk/geanylipsum/src/geanylipsum.c

frlan at users.sourceforge.net frlan at xxxxx
Thu Jan 8 12:35:05 UTC 2009


Revision: 372
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=372&view=rev
Author:   frlan
Date:     2009-01-08 12:35:05 +0000 (Thu, 08 Jan 2009)

Log Message:
-----------
GeanyLipsum: Added a spin button to enter the wished length of Lipsum text. Without any function at the moment

Modified Paths:
--------------
    trunk/geanylipsum/src/geanylipsum.c

Modified: trunk/geanylipsum/src/geanylipsum.c
===================================================================
--- trunk/geanylipsum/src/geanylipsum.c	2009-01-06 19:08:11 UTC (rev 371)
+++ trunk/geanylipsum/src/geanylipsum.c	2009-01-08 12:35:05 UTC (rev 372)
@@ -100,6 +100,9 @@
 	GtkWidget *radio1 = NULL;
 	GtkWidget *radio2 = NULL;
 	GtkWidget *radio3 = NULL;
+	GtkWidget *label = NULL;
+	GtkWidget *hbox = NULL;
+	GtkWidget *spin = NULL;
 	GtkTooltips *tooltip = NULL;
 	GeanyDocument *doc = NULL;
 	GeanyFiletype *ft = NULL;
@@ -151,6 +154,16 @@
 	}
 	gtk_container_add(GTK_CONTAINER(vbox), radio3);
 
+	label = gtk_label_new(_("characters"));
+	spin = gtk_spin_button_new_with_range(1, 1800, 1);
+	gtk_spin_button_set_value(GTK_SPIN_BUTTON(spin), 1500);
+
+	hbox = gtk_hbox_new(FALSE, 5);
+	gtk_box_pack_start(GTK_BOX(hbox), spin, TRUE, TRUE, 0);
+	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
+
+	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 5);
+
 	gtk_widget_show_all(vbox);
 
 	if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list