[SCM] ladish/master: debian/patches/1002-save_as_dialog_avoid_multiplied_emits.patch
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Thu Apr 21 10:10:55 UTC 2011
The following commit has been merged in the master branch:
commit 5eb0a8745150c9360eb946f9d4e551ad6aae4ddc
Author: Alessio Treglia <alessio at debian.org>
Date: Thu Apr 21 12:09:48 2011 +0200
debian/patches/1002-save_as_dialog_avoid_multiplied_emits.patch
- Don't add signal connection for path button each time when it is
opened to avoid multiplied emits.
diff --git a/debian/patches/1002-save_as_dialog_avoid_multiplied_emits.patch b/debian/patches/1002-save_as_dialog_avoid_multiplied_emits.patch
new file mode 100644
index 0000000..2751517
--- /dev/null
+++ b/debian/patches/1002-save_as_dialog_avoid_multiplied_emits.patch
@@ -0,0 +1,61 @@
+Description: Don't add signal connection for path button each time
+ when it is opened to avoid multiplied emits.
+Origin: http://ladish.org/changeset/df56cfc246a91e447197735fd1ef58fe18e1eac6/
+Applied-Upstream: yes
+---
+ gui/dialogs.c | 2 ++
+ gui/save_project_dialog.c | 9 +++++++--
+ gui/save_project_dialog.h | 1 +
+ 3 files changed, 10 insertions(+), 2 deletions(-)
+
+--- ladish.orig/gui/dialogs.c
++++ ladish/gui/dialogs.c
+@@ -26,6 +26,7 @@
+
+ #include "graph_view.h"
+ #include "gtk_builder.h"
++#include "save_project_dialog.h"
+
+ static GtkWidget * g_name_dialog;
+ GtkWidget * g_app_dialog = NULL;
+@@ -151,4 +152,5 @@ void init_dialogs(void)
+ {
+ g_name_dialog = get_gtk_builder_widget("name_dialog");
+ g_app_dialog = get_gtk_builder_widget("app_dialog");
++ ladish_init_save_project_dialog();
+ }
+--- ladish.orig/gui/save_project_dialog.c
++++ ladish/gui/save_project_dialog.c
+@@ -48,6 +48,13 @@ static void on_path_button_clicked(void)
+ }
+ }
+
++void ladish_init_save_project_dialog(void)
++{
++ GtkWidget * path_button = NULL;
++ path_button = get_gtk_builder_widget("project_save_as_path_button");
++ g_signal_connect( G_OBJECT(path_button), "clicked", G_CALLBACK(on_path_button_clicked), NULL);
++}
++
+ void ladish_run_save_project_dialog(ladish_room_proxy_handle room)
+ {
+ GtkWidget * dialog = NULL;
+@@ -63,8 +70,6 @@ void ladish_run_save_project_dialog(ladi
+ path = GTK_ENTRY(get_gtk_builder_widget("project_save_as_path_entry"));
+ name = GTK_ENTRY(get_gtk_builder_widget("project_save_as_name_entry"));
+
+- g_signal_connect( G_OBJECT(path_button), "clicked", G_CALLBACK(on_path_button_clicked), NULL);
+-
+ ladish_room_proxy_get_project_properties(room, &project_dir, &project_name, NULL, NULL);
+
+ gtk_entry_set_text(path, project_dir);
+--- ladish.orig/gui/save_project_dialog.h
++++ ladish/gui/save_project_dialog.h
+@@ -29,6 +29,7 @@
+
+ #include "../proxies/room_proxy.h"
+
++void ladish_init_save_project_dialog(void);
+ void ladish_run_save_project_dialog(ladish_room_proxy_handle room);
+
+ #endif /* #ifndef SAVE_PROJECT_DIALOG_H__7C9FB1FB_8582_451E_8959_1CD688E50A20__INCLUDED */
diff --git a/debian/patches/series b/debian/patches/series
index 375c2a8..2ddf4a2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-disable_stacktrace.patch
1001-desktop_file.patch
+1002-save_as_dialog_avoid_multiplied_emits.patch
--
ladish packaging
More information about the pkg-multimedia-commits
mailing list