Skip to content

Commit

Permalink
Fix icon issues
Browse files Browse the repository at this point in the history
  • Loading branch information
daleclack committed Apr 3, 2024
1 parent 0feed00 commit eb98243
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Gtk4/res/leftpanel.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions Gtk4/src/core/LeftPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}

Expand Down
4 changes: 2 additions & 2 deletions Gtk4/src/media_app/MediaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eb98243

Please sign in to comment.