Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Tue, 24 Jun 2014 16:26:44 UTC Commit: 9bf647c5c3117d36c4ea7c99f05ad99e03106045 https://github.com/geany/geany/commit/9bf647c5c3117d36c4ea7c99f05ad99e031060...
Log Message: ----------- Move on_clone1_activate() to callbacks.c
Modified Paths: -------------- src/callbacks.c src/document.c
Modified: src/callbacks.c 11 lines changed, 11 insertions(+), 0 deletions(-) =================================================================== @@ -149,6 +149,7 @@ G_MODULE_EXPORT void on_reset_indentation1_activate(GtkMenuItem *menuitem, gpoin G_MODULE_EXPORT void on_mark_all1_activate(GtkMenuItem *menuitem, gpointer user_data); G_MODULE_EXPORT void on_detect_type_from_file_activate(GtkMenuItem *menuitem, gpointer user_data); G_MODULE_EXPORT void on_detect_width_from_file_activate(GtkMenuItem *menuitem, gpointer user_data); +G_MODULE_EXPORT void on_clone1_activate(GtkMenuItem *menuitem, gpointer user_data);
/* flag to indicate that an insert callback was triggered from the file menu, @@ -240,6 +241,16 @@ G_MODULE_EXPORT void on_new1_activate(GtkMenuItem *menuitem, gpointer user_data) }
+/* create a new file and copy file content and properties */ +G_MODULE_EXPORT void on_clone1_activate(GtkMenuItem *menuitem, gpointer user_data) +{ + GeanyDocument *old_doc = document_get_current(); + + if (old_doc) + document_clone(old_doc); +} + + G_MODULE_EXPORT void on_save1_activate(GtkMenuItem *menuitem, gpointer user_data) { gint cur_page = gtk_notebook_get_current_page(GTK_NOTEBOOK(main_widgets.notebook));
Modified: src/document.c 10 lines changed, 0 insertions(+), 10 deletions(-) =================================================================== @@ -2957,16 +2957,6 @@ GeanyDocument *document_index(gint idx) }
-/* create a new file and copy file content and properties */ -G_MODULE_EXPORT void on_clone1_activate(GtkMenuItem *menuitem, gpointer user_data) -{ - GeanyDocument *old_doc = document_get_current(); - - if (old_doc) - document_clone(old_doc); -} - - GeanyDocument *document_clone(GeanyDocument *old_doc) { gchar *text;
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).