Revision: 1233 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1233&view=re... Author: frlan Date: 2010-04-11 13:14:17 +0000 (Sun, 11 Apr 2010)
Log Message: ----------- GeanyLaTeX: Move glatex_enter_key_pressed_in_entry() to latexutils.[c|h]
Modified Paths: -------------- trunk/geanylatex/src/geanylatex.c trunk/geanylatex/src/geanylatex.h trunk/geanylatex/src/latexenvironments.c trunk/geanylatex/src/latexutils.c trunk/geanylatex/src/latexutils.h
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2010-04-11 13:13:30 UTC (rev 1232) +++ trunk/geanylatex/src/geanylatex.c 2010-04-11 13:14:17 UTC (rev 1233) @@ -133,12 +133,6 @@ static void toggle_toolbar_items_by_file_type(gint id);
-void glatex_enter_key_pressed_in_entry(GtkWidget *widget, gpointer dialog ) -{ - gtk_dialog_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT); -} - - static GtkWidget *init_toolbar() { GtkWidget *toolbar = NULL;
Modified: trunk/geanylatex/src/geanylatex.h =================================================================== --- trunk/geanylatex/src/geanylatex.h 2010-04-11 13:13:30 UTC (rev 1232) +++ trunk/geanylatex/src/geanylatex.h 2010-04-11 13:14:17 UTC (rev 1233) @@ -90,5 +90,4 @@ void glatex_replace_special_character(); void glatex_insert_usepackage_dialog(G_GNUC_UNUSED GtkMenuItem * menuitem, G_GNUC_UNUSED gpointer gdata); -void glatex_enter_key_pressed_in_entry(GtkWidget *widget, gpointer dialog); #endif
Modified: trunk/geanylatex/src/latexenvironments.c =================================================================== --- trunk/geanylatex/src/latexenvironments.c 2010-04-11 13:13:30 UTC (rev 1232) +++ trunk/geanylatex/src/latexenvironments.c 2010-04-11 13:14:17 UTC (rev 1233) @@ -190,7 +190,7 @@ 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); - + gtk_widget_show_all(vbox);
if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT)
Modified: trunk/geanylatex/src/latexutils.c =================================================================== --- trunk/geanylatex/src/latexutils.c 2010-04-11 13:13:30 UTC (rev 1232) +++ trunk/geanylatex/src/latexutils.c 2010-04-11 13:14:17 UTC (rev 1233) @@ -89,6 +89,11 @@ _("Could not determine where to insert package: %s" "\nPlease try insert package manually"), pkg); ui_set_statusbar(TRUE, _("Could not determine where to insert package: %s"), pkg ); +}
+void glatex_enter_key_pressed_in_entry(GtkWidget *widget, gpointer dialog ) +{ + gtk_dialog_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT); } +
Modified: trunk/geanylatex/src/latexutils.h =================================================================== --- trunk/geanylatex/src/latexutils.h 2010-04-11 13:13:30 UTC (rev 1232) +++ trunk/geanylatex/src/latexutils.h 2010-04-11 13:14:17 UTC (rev 1233) @@ -27,4 +27,6 @@
void glatex_usepackage(const gchar *pkg, const gchar *options);
+void glatex_enter_key_pressed_in_entry(GtkWidget *widget, gpointer dialog); + #endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.