Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sun, 08 Jul 2012 17:23:20 Commit: 37178885c657772c2353bb3d268119c9ca8fb965 https://github.com/geany/geany-plugins/commit/37178885c657772c2353bb3d268119...
Log Message: ----------- GeanyLua: Remove a few unused variables
Modified Paths: -------------- geanylua/glspi_dlg.c geanylua/glspi_run.c
Modified: geanylua/glspi_dlg.c 8 files changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -116,7 +116,7 @@ static gint glspi_choose(lua_State* L) const gchar *arg1=NULL; gint i, n; GtkResponseType rv; - GtkWidget*dialog, *ok_btn, *cancel_btn, *tree, *scroll; + GtkWidget*dialog, *ok_btn, *tree, *scroll; GtkListStore *store; GtkTreeIter iter; GtkTreeSelection *select; @@ -148,7 +148,7 @@ static gint glspi_choose(lua_State* L) dialog = new_dlg(GTK_MESSAGE_OTHER, GTK_BUTTONS_NONE, arg1, NULL); ok_btn=gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_OK, GTK_RESPONSE_OK); - cancel_btn=gtk_dialog_add_button(GTK_DIALOG(dialog), + gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); gtk_widget_grab_default(ok_btn); set_dialog_title(L,dialog); @@ -271,7 +271,7 @@ static gint glspi_input(lua_State* L) const gchar *arg1=NULL; const gchar *arg2=NULL; GtkResponseType rv; - GtkWidget*dialog, *entry, *ok_btn, *cancel_btn; + GtkWidget*dialog, *entry, *ok_btn;
switch (lua_gettop(L)) { case 0: break; @@ -291,7 +291,7 @@ static gint glspi_input(lua_State* L) dialog = new_dlg(GTK_MESSAGE_OTHER, GTK_BUTTONS_NONE, arg1, NULL); ok_btn=gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_OK, GTK_RESPONSE_OK); - cancel_btn=gtk_dialog_add_button(GTK_DIALOG(dialog), + gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); gtk_widget_grab_default(ok_btn); entry=gtk_entry_new();
Modified: geanylua/glspi_run.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -113,12 +113,12 @@ static void glspi_script_error(const gchar *script_file, const gchar *msg, gbool gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s:\n%s", script_file, msg); } else { - GtkWidget *open_btn, *cancel_btn; + GtkWidget *open_btn; dialog=gtk_message_dialog_new(GTK_WINDOW(main_widgets->window), GTK_DIALOG_DESTROY_WITH_PARENT|GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_NONE, _("Lua script error:")); gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog), "%s", msg); - cancel_btn=gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); + gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); open_btn=gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT); gtk_widget_grab_default(open_btn); }
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).