Add Icon for start button

This commit is contained in:
daleclack 2022-01-12 19:10:57 +08:00
parent 5989ae2c67
commit b37c1f1bae
4 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
set(CMAKE_CXX_STANDARD 17)
cmake_minimum_required(VERSION 3.0.0)
project(My_GtkUI VERSION 4.2.0)
project(My_GtkUI VERSION 4.3.0)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../GCR_CMake/macros)
include(GlibCompileResourcesSupport)

View File

@ -365,6 +365,12 @@
<property name="has-frame">0</property>
<property name="direction">right</property>
<property name="popover">popover1</property>
<child>
<object class="GtkImage" id="start_image">
<property name="pixel-size">48</property>
<property name="icon-name">My_GtkUI</property>
</object>
</child>
</object>
</child>
<child>

View File

@ -227,7 +227,7 @@ static void left_panel_init(LeftPanel * panel){
//Set Image for start button
gtk_menu_button_set_label(GTK_MENU_BUTTON(panel->btnstart),"Start");
//gtk_menu_button_set_label(GTK_MENU_BUTTON(panel->btnstart),"Start");
//All Apps are not in running mode
panel->file_running = FALSE;

View File

@ -136,7 +136,7 @@ static void about_activated(GSimpleAction * action, GVariant * parmeter, gpointe
NULL
};
char *version;
version=g_strdup_printf("4.2\nRunning Against GTK %d.%d.%d",
version=g_strdup_printf("4.3\nRunning Against GTK %d.%d.%d",
gtk_get_major_version(),
gtk_get_minor_version(),
gtk_get_micro_version());