diff --git a/src/main.c b/src/main.c index f57665a..23afdc0 100644 --- a/src/main.c +++ b/src/main.c @@ -86,6 +86,7 @@ int main (int argc, char **argv) //----------------------------- personal notes --------------------------- // TODO (ranger ça !) + /* * Sur quel modèle se guider pour structurer le client gem-graph ? * @@ -165,15 +166,6 @@ int main (int argc, char **argv) */ -// GTK itself does not support event sounds, << A GREAT WAY TO DEBUG ! TODO -// you have to use a loadable module like the one that comes with libcanberra. - - - -// Property GtkSettings:gtk-error-bell - -// property gtk-error-bell: gboolean [ read, write ] -// When TRUE, keyboard navigation and other input-related errors will cause a beep. /* diff --git a/src/signal.c b/src/signal.c index 4742ec6..84250b6 100644 --- a/src/signal.c +++ b/src/signal.c @@ -372,7 +372,10 @@ static void switch_state_rules_data(); void on_toggle_exec_edit (GtkWidget *toggled_button, gpointer user_data) { fsm_journal_event (INFO, BUTTON, "signal", "toggle exec edit()", - "change of status requested"); + "flip status request + bell 😇️ gdk_display_beep()"); + + gdk_display_beep (gdk_display_get_default()); + if (fsm_get_exec_edit ()) { // TODO (or NOT ?) et si je ne suis pas sur la page SYNTH diff --git a/src/widget/topbar/dialog.c b/src/widget/dialog.c similarity index 96% rename from src/widget/topbar/dialog.c rename to src/widget/dialog.c index 88497c8..9e9d68e 100644 --- a/src/widget/topbar/dialog.c +++ b/src/widget/dialog.c @@ -24,10 +24,10 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "../../../include/base.h" -#include "../../../include/signal.h" -#include "../../../include/widget.h" -#include "../../../include/fsm.h" +#include "../../include/base.h" +#include "../../include/signal.h" +#include "../../include/widget.h" +#include "../../include/fsm.h" /******************************************************************************/ diff --git a/src/widget/dispatch.c b/src/widget/manager.c similarity index 100% rename from src/widget/dispatch.c rename to src/widget/manager.c diff --git a/src/widget/topbar/modal.c b/src/widget/modal.c similarity index 97% rename from src/widget/topbar/modal.c rename to src/widget/modal.c index 7a1c2dc..5b782c8 100644 --- a/src/widget/topbar/modal.c +++ b/src/widget/modal.c @@ -24,9 +24,9 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "../../../include/util.h" -#include "../../../include/signal.h" -#include "../../../include/widget.h" +#include "../../include/util.h" +#include "../../include/signal.h" +#include "../../include/widget.h" /******************************************************************************/ diff --git a/src/widget/state/middle.c b/src/widget/state/middle.c index 6932d4b..1561c02 100644 --- a/src/widget/state/middle.c +++ b/src/widget/state/middle.c @@ -91,7 +91,7 @@ void *widget_get_space_view(int partition_space_vs_camera) { GtkBox *drawbox = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0)); GdkSurface *drawsurface = gdk_surface_new_toplevel (gdk_display_get_default()); - gdk_display_beep (gdk_display_get_default()); + //////// gdk_display_beep (gdk_display_get_default()); GdkCursor *drawbox_cursor = gdk_cursor_new_from_name ("cell", gdk_cursor_new_from_name ("default", NULL)); gdk_surface_set_cursor (drawsurface, drawbox_cursor); diff --git a/src/widget/topbar/right.c b/src/widget/topbar/right.c index 3cff98c..f5bca3f 100644 --- a/src/widget/topbar/right.c +++ b/src/widget/topbar/right.c @@ -51,7 +51,6 @@ static void display_widgets_at_the_right_side (GtkWidget *header_bar) GtkButton *btt_go_home = GTK_BUTTON (gtk_button_new ()); gtk_button_set_icon_name (btt_go_home, "go-home-symbolic"); - gtk_widget_error_bell (GTK_WIDGET (btt_go_home)); // << TODO est-ce possible ? g_signal_connect (btt_go_home, "clicked", G_CALLBACK (on_clicked_topbar_right_home), no_local_data); gtk_header_bar_pack_end (GTK_HEADER_BAR (header_bar), GTK_WIDGET (btt_go_home));