Fix icon issues

This commit is contained in:
daleclack 2024-04-03 23:41:41 +08:00
parent 0feed00fc4
commit eb98243682
3 changed files with 7 additions and 7 deletions

View File

@ -53,7 +53,7 @@
<child>
<object class="GtkImage">
<property name="pixel-size">16</property>
<property name="icon-name">gedit</property>
<property name="icon-name">myeditor</property>
</object>
</child>
<child>
@ -148,7 +148,7 @@
<child>
<object class="GtkImage">
<property name="pixel-size">16</property>
<property name="icon-name">gedit</property>
<property name="icon-name">myeditor</property>
</object>
</child>
<child>

View File

@ -77,7 +77,7 @@ void left_panel_set_parent(LeftPanel *self, GtkWindow *parent_win1)
// Fix the height < 400
int height = main_win_get_height(MAIN_WIN(parent_win1));
int width = main_win_get_width(MAIN_WIN(parent_win1));
if (height < 400 || width < 800)
if (height <= 470 || width <= 820)
{
gtk_widget_set_size_request(self->popover1, 320, height - 40);
self->win_height = height - 60;
@ -86,8 +86,8 @@ void left_panel_set_parent(LeftPanel *self, GtkWindow *parent_win1)
else
{
gtk_widget_set_size_request(self->popover1, 320, 400);
self->win_height = 800;
self->win_width = 450;
self->win_height = 450;
self->win_width = 800;
}
}

View File

@ -74,9 +74,9 @@ static void about_activated(GSimpleAction *action,
"copyright", "©2019—2024 The Xe Project",
"comments", "A Simple Media Player",
"authors", authors,
"logo-icon-name", "media-player1",
"logo-icon-name", "multimedia-player1",
"title", "About Gtk4 Media",
NULL);
NULL, nullptr);
}
// static void dialog_response(GtkWidget *widget, int response, MediaPlayer *player)