[eog: 1/2] Replace gtk_window_set_title with hdy_header_bar_set_title
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog: 1/2] Replace gtk_window_set_title with hdy_header_bar_set_title
- Date: Sat, 19 Feb 2022 15:00:17 +0000 (UTC)
commit 72439f78b4b44f08a0eedc8b4ade496a0bb8446c
Author: Krifa75 <yahiaoui fakhri gmail com>
Date: Thu Feb 17 22:23:55 2022 +0100
Replace gtk_window_set_title with hdy_header_bar_set_title
src/eog-window.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index cc7bccb2..ea18ab87 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -995,7 +995,7 @@ eog_window_display_image (EogWindow *window, EogImage *image)
eog_scroll_view_set_image (EOG_SCROLL_VIEW (priv->view), image);
- gtk_window_set_title (GTK_WINDOW (window), eog_image_get_caption (image));
+ hdy_header_bar_set_title (HDY_HEADER_BAR (priv->headerbar), eog_image_get_caption (image));
update_status_bar (window);
@@ -1422,7 +1422,7 @@ eog_job_load_cb (EogJobLoad *job, gpointer data)
window);
gtk_window_set_icon (GTK_WINDOW (window), NULL);
- gtk_window_set_title (GTK_WINDOW (window),
+ hdy_header_bar_set_title (HDY_HEADER_BAR (priv->headerbar),
eog_image_get_caption (job->image));
eog_window_set_message_area (window, message_area);
@@ -1560,7 +1560,7 @@ handle_image_selection_changed_cb (EogThumbView *thumbview, EogWindow *window)
priv = window->priv;
if (eog_list_store_length (EOG_LIST_STORE (priv->store)) == 0) {
- gtk_window_set_title (GTK_WINDOW (window),
+ hdy_header_bar_set_title (HDY_HEADER_BAR (priv->headerbar),
g_get_application_name());
gtk_statusbar_remove_all (GTK_STATUSBAR (priv->statusbar),
priv->image_info_message_cid);
@@ -2353,7 +2353,7 @@ eog_job_close_save_cb (EogJobSave *job, gpointer user_data)
window);
gtk_window_set_icon (GTK_WINDOW (window), NULL);
- gtk_window_set_title (GTK_WINDOW (window),
+ hdy_header_bar_set_title (HDY_HEADER_BAR (window->priv->headerbar),
eog_image_get_caption (job->current_image));
eog_window_set_message_area (window, message_area);
@@ -2776,7 +2776,7 @@ eog_job_save_cb (EogJobSave *job, gpointer user_data)
/* check if job contains any error */
if (EOG_JOB (job)->error == NULL) {
update_status_bar (window);
- gtk_window_set_title (GTK_WINDOW (window),
+ hdy_header_bar_set_title (HDY_HEADER_BAR (window->priv->headerbar),
eog_image_get_caption (job->current_image));
g_simple_action_set_enabled (G_SIMPLE_ACTION (action_save), FALSE);
@@ -2793,7 +2793,7 @@ eog_job_save_cb (EogJobSave *job, gpointer user_data)
window);
gtk_window_set_icon (GTK_WINDOW (window), NULL);
- gtk_window_set_title (GTK_WINDOW (window),
+ hdy_header_bar_set_title (HDY_HEADER_BAR (window->priv->headerbar),
eog_image_get_caption (job->current_image));
eog_window_set_message_area (window, message_area);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]