Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

GeanyLua: Remove a few unused variables

  • Loading branch information...
commit 37178885c657772c2353bb3d268119c9ca8fb965 1 parent ec555b3
@b4n b4n authored
Showing with 6 additions and 6 deletions.
  1. +4 −4 geanylua/glspi_dlg.c
  2. +2 −2 geanylua/glspi_run.c
View
8 geanylua/glspi_dlg.c
@@ -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();
View
4 geanylua/glspi_run.c
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.