Update gtk68

This commit is contained in:
daleclack 2021-04-20 21:13:42 +08:00
parent 1f496ee72b
commit 6e3c78d8bf
4 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
<file preprocess="xml-stripblanks">appmenu.xml</file> <file preprocess="xml-stripblanks">appmenu.xml</file>
</gresource> </gresource>
<gresource prefix="org/gtk/daleclack"> <gresource prefix="org/gtk/daleclack">
<file>icons/16x16/actions/open-menu.png</file>
<file>icons/48x48/actions/gtk68.png</file> <file>icons/48x48/actions/gtk68.png</file>
<file>icons/128x128/actions/gtk68.png</file> <file>icons/128x128/actions/gtk68.png</file>
</gresource> </gresource>

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

View File

@ -149,6 +149,7 @@ static void gtkmain(GtkApplication *app,gpointer user_data){
gtk_header_bar_set_decoration_layout(GTK_HEADER_BAR(header),"close,minimize,maximize:menu"); gtk_header_bar_set_decoration_layout(GTK_HEADER_BAR(header),"close,minimize,maximize:menu");
//Menu to control files //Menu to control files
menubtn=gtk_menu_button_new(); menubtn=gtk_menu_button_new();
gtk_menu_button_set_icon_name((GtkMenuButton*)menubtn,"open-menu");
popover=gtk_popover_menu_new_from_model(model); popover=gtk_popover_menu_new_from_model(model);
gtk_widget_set_halign(popover,GTK_ALIGN_END); gtk_widget_set_halign(popover,GTK_ALIGN_END);
gtk_menu_button_set_popover((GtkMenuButton*)menubtn,popover); gtk_menu_button_set_popover((GtkMenuButton*)menubtn,popover);