Revision: 1235 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1235&view=re... Author: frlan Date: 2010-04-11 13:56:49 +0000 (Sun, 11 Apr 2010)
Log Message: ----------- GeanyLaTeX: Enabling inserting environment on pushing return after typing inside the insert environment dialog.
Modified Paths: -------------- trunk/geanylatex/ChangeLog trunk/geanylatex/src/latexenvironments.c
Modified: trunk/geanylatex/ChangeLog =================================================================== --- trunk/geanylatex/ChangeLog 2010-04-11 13:14:55 UTC (rev 1234) +++ trunk/geanylatex/ChangeLog 2010-04-11 13:56:49 UTC (rev 1235) @@ -2,6 +2,8 @@
* Enabling inserting label on pushing return after typing in label name. * Enabling inserting \usepackage{} on pushing return after typing in dialog. + * Enabling inserting environment on pushing return after typing inside + the insert environment dialog.
2010-03-27 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
Modified: trunk/geanylatex/src/latexenvironments.c =================================================================== --- trunk/geanylatex/src/latexenvironments.c 2010-04-11 13:14:55 UTC (rev 1234) +++ trunk/geanylatex/src/latexenvironments.c 2010-04-11 13:56:49 UTC (rev 1235) @@ -154,6 +154,7 @@ GtkWidget *label_env = NULL; GtkWidget *textbox_env = NULL; GtkWidget *table = NULL; + GtkWidget *tmp_entry = NULL; GtkTreeModel *model = NULL; gint i, max;
@@ -190,7 +191,11 @@ gtk_table_attach_defaults(GTK_TABLE(table), label_env, 0, 1, 0, 1); gtk_table_attach_defaults(GTK_TABLE(table), textbox_env, 1, 2, 0, 1); gtk_container_add(GTK_CONTAINER(vbox), table); - + + tmp_entry = gtk_bin_get_child(GTK_BIN(textbox_env)); + g_signal_connect(G_OBJECT(tmp_entry), "activate", + G_CALLBACK(glatex_enter_key_pressed_in_entry), dialog); + 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.
plugins-commits@lists.geany.org