Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 04 Jun 2012 23:06:01 Commit: f21d8f1de26b48a08d64dc2417919ee8e28f796c https://github.com/geany/geany-plugins/commit/f21d8f1de26b48a08d64dc2417919e...
Log Message: ----------- codenav: Don't mix declarations and code
Modified Paths: -------------- codenav/src/codenavigation.c codenav/src/goto_file.c codenav/src/switch_head_impl.c
Modified: codenav/src/codenavigation.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -85,10 +85,10 @@ void plugin_init(GeanyData *data) */ GtkWidget *plugin_configure(GtkDialog *dialog) { - log_func(); - GtkWidget *vbox;
+ log_func(); + vbox = gtk_vbox_new(FALSE, 6);
/* Switch header/implementation widget */
Modified: codenav/src/goto_file.c 9 files changed, 6 insertions(+), 3 deletions(-) =================================================================== @@ -47,9 +47,11 @@ void goto_file_init() { + GtkWidget* edit_menu; + log_func();
- GtkWidget* edit_menu = ui_lookup_widget(geany->main_widgets->window, "edit1_menu"); + edit_menu = ui_lookup_widget(geany->main_widgets->window, "edit1_menu");
/* Add the menu item, sensitive only when a document is opened */ menu_item = gtk_menu_item_new_with_mnemonic(_("Goto file")); @@ -89,11 +91,12 @@ static void menu_item_activate(guint key_id) { + GtkWidget *dialog; + log_func();
/* TODO */ - - GtkWidget *dialog = gtk_message_dialog_new( + dialog = gtk_message_dialog_new( GTK_WINDOW(geany->main_widgets->window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO,
Modified: codenav/src/switch_head_impl.c 8 files changed, 6 insertions(+), 2 deletions(-) =================================================================== @@ -75,9 +75,11 @@ void switch_head_impl_init() { + GtkWidget* edit_menu; + log_func();
- GtkWidget* edit_menu = ui_lookup_widget(geany->main_widgets->window, "edit1_menu"); + edit_menu = ui_lookup_widget(geany->main_widgets->window, "edit1_menu");
/* Add the menu item and make it sensitive only when a document is opened */ menu_item = gtk_menu_item_new_with_mnemonic(_("Switch header/implementation")); @@ -356,9 +358,11 @@
/* Third : if not found, ask the user if he wants to create it or not. */ { + GtkWidget* dialog; + p_str = g_strdup_printf("%s.%s", basename_no_extension, (const gchar*)(p_extensions_to_test->data));
- GtkWidget* dialog = gtk_message_dialog_new( GTK_WINDOW(geany_data->main_widgets->window), + dialog = gtk_message_dialog_new( GTK_WINDOW(geany_data->main_widgets->window), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_OK_CANCEL,
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).