diff --git a/Sources/GuiTools/MainWindows/MainWindows.cpp b/Sources/GuiTools/MainWindows/MainWindows.cpp index 2c0db60..47af5fa 100644 --- a/Sources/GuiTools/MainWindows/MainWindows.cpp +++ b/Sources/GuiTools/MainWindows/MainWindows.cpp @@ -79,6 +79,24 @@ MainWindows::MainWindows(void) : MsgBroadcast("Main Windows", EDN_CAT_GUI) GtkWidget *hboxMenu = gtk_hbox_new (FALSE, 0); gtk_box_pack_start( GTK_BOX (vbox), hboxMenu, FALSE, FALSE, 0); // Add Exit boutton + Edn::String ExitIconeFile; +#ifdef NDEBUG + ExitIconeFile = "/usr/share/edn/images/delete-24px.png"; +#else + ExitIconeFile = "./data/imagesSources/delete-24px.png"; +#endif + // TODO : find a good way to chenge the size of an image + GtkWidget *myImageQuit = gtk_image_new_from_file(ExitIconeFile.c_str()); + GtkIconSize mySize = GTK_ICON_SIZE_SMALL_TOOLBAR; + //EDN_DEBUG(" plop : " << mySize); + //gtk_image_get_icon_set( GTK_IMAGE(myImageQuit), NULL, &mySize); + //EDN_DEBUG(" plop : " << mySize); + GtkWidget *event_box = gtk_event_box_new(); + gtk_container_add(GTK_CONTAINER(event_box),myImageQuit); + gtk_widget_add_events(event_box,GDK_BUTTON_PRESS_MASK); + g_signal_connect(G_OBJECT(event_box), "button_press_event", G_CALLBACK(OnQuit), this); + + gtk_box_pack_start( GTK_BOX(hboxMenu), event_box, FALSE, FALSE, 0); // add the real menu bar gtk_box_pack_start( GTK_BOX (hboxMenu), m_MenuBar.GetWidget(), FALSE, FALSE, 0); diff --git a/data/color_white.xml b/data/color_white.xml new file mode 100644 index 0000000..aa42f6a --- /dev/null +++ b/data/color_white.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/imagesSources/delete-24px.png b/data/imagesSources/delete-24px.png new file mode 100644 index 0000000..ee1f1de Binary files /dev/null and b/data/imagesSources/delete-24px.png differ diff --git a/data/imagesSources/delete.png b/data/imagesSources/delete.png new file mode 100644 index 0000000..74cefb4 Binary files /dev/null and b/data/imagesSources/delete.png differ