[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-841-g050e170bb
paul at claws-mail.org
paul at claws-mail.org
Thu Nov 21 10:37:48 CET 2019
The branch, gtk3 has been updated
via 050e170bbb4be3b5e2d783ac8a93e22c03163dfd (commit)
from 1d37ede952396415a1e20ebaf1768963fce616fc (commit)
Summary of changes:
src/addressbook.c | 4 ++--
src/gtk/gtkvscrollbutton.c | 4 ++--
src/mimeview.c | 2 +-
src/plugins/vcalendar/day-view.c | 4 ++--
src/plugins/vcalendar/month-view.c | 4 ++--
src/prefs_actions.c | 2 +-
src/prefs_customheader.c | 2 +-
src/prefs_filtering.c | 2 +-
src/prefs_filtering_action.c | 2 +-
src/prefs_matcher.c | 2 +-
src/prefs_toolbar.c | 2 +-
src/summaryview.c | 8 ++++----
12 files changed, 19 insertions(+), 19 deletions(-)
- Log -----------------------------------------------------------------
commit 050e170bbb4be3b5e2d783ac8a93e22c03163dfd
Author: paul <paul at claws-mail.org>
Date: Thu Nov 21 10:37:42 2019 +0000
replace deprecated gtk_arrow_new()
diff --git a/src/addressbook.c b/src/addressbook.c
index 5d2d7c94e..6d03f64de 100644
--- a/src/addressbook.c
+++ b/src/addressbook.c
@@ -772,8 +772,8 @@ static void addressbook_sort_list(GtkCMCList *clist, const gint col,
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
if(pos == col) {
- arrow = gtk_arrow_new(sort_type == GTK_SORT_ASCENDING ?
- GTK_ARROW_DOWN : GTK_ARROW_UP, GTK_SHADOW_IN);
+ arrow = gtk_image_new_from_icon_name(sort_type == GTK_SORT_ASCENDING ?
+ "pan-down-symbolic" : "pan-up-symbolic", GTK_ICON_SIZE_MENU);
gtk_box_pack_end(GTK_BOX(hbox), arrow, FALSE, FALSE, 0);
}
diff --git a/src/gtk/gtkvscrollbutton.c b/src/gtk/gtkvscrollbutton.c
index d33797ed3..3feafa8b5 100644
--- a/src/gtk/gtkvscrollbutton.c
+++ b/src/gtk/gtkvscrollbutton.c
@@ -153,11 +153,11 @@ static void gtk_vscrollbutton_init(GtkVScrollbutton *scrollbutton)
scrollbutton->upbutton = gtk_event_box_new();
scrollbutton->downbutton = gtk_event_box_new();
- arrow = gtk_arrow_new(GTK_ARROW_UP, GTK_SHADOW_NONE);
+ arrow = gtk_image_new_from_icon_name("pan-up-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_show(arrow);
gtk_container_add(GTK_CONTAINER(scrollbutton->upbutton), arrow);
gtk_widget_set_size_request(scrollbutton->upbutton, -1, 16);
- arrow = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_NONE);
+ arrow = gtk_image_new_from_icon_name("pan-down-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_show(arrow);
gtk_container_add(GTK_CONTAINER(scrollbutton->downbutton), arrow);
gtk_widget_set_size_request(scrollbutton->downbutton, -1, 16);
diff --git a/src/mimeview.c b/src/mimeview.c
index 16764af4c..42e599bb9 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -394,7 +394,7 @@ MimeView *mimeview_create(MainWindow *mainwin)
gtk_container_set_border_width(GTK_CONTAINER(mime_toggle), 2);
gtk_widget_show(mime_toggle);
mimeview->ctree_mode = FALSE;
- arrow = gtk_arrow_new(GTK_ARROW_LEFT, GTK_SHADOW_NONE);
+ arrow = gtk_image_new_from_icon_name("pan-start-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_show(arrow);
gtk_container_add(GTK_CONTAINER(mime_toggle), arrow);
g_signal_connect(G_OBJECT(mime_toggle), "button_release_event",
diff --git a/src/plugins/vcalendar/day-view.c b/src/plugins/vcalendar/day-view.c
index fd7daee32..fe4319b62 100644
--- a/src/plugins/vcalendar/day-view.c
+++ b/src/plugins/vcalendar/day-view.c
@@ -771,7 +771,7 @@ static void build_day_view_table(day_win *dw)
dw->Previous_toolbutton = gtk_event_box_new();
gtk_event_box_set_visible_window(GTK_EVENT_BOX(dw->Previous_toolbutton), FALSE);
gtk_container_set_border_width(GTK_CONTAINER(dw->Previous_toolbutton), 0);
- arrow = gtk_arrow_new(GTK_ARROW_LEFT, GTK_SHADOW_NONE);
+ arrow = gtk_image_new_from_icon_name("pan-start-symbolic", GTK_ICON_SIZE_MENU);
gtk_container_add(GTK_CONTAINER(dw->Previous_toolbutton), arrow);
gtk_table_attach(GTK_TABLE(dw->dtable_h), dw->Previous_toolbutton, i, i+1, 0, 1
, (GTK_FILL), (0), 0, 0);
@@ -820,7 +820,7 @@ static void build_day_view_table(day_win *dw)
dw->Next_toolbutton = gtk_event_box_new();
gtk_event_box_set_visible_window(GTK_EVENT_BOX(dw->Next_toolbutton), FALSE);
gtk_container_set_border_width(GTK_CONTAINER(dw->Next_toolbutton), 0);
- arrow = gtk_arrow_new(GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
+ arrow = gtk_image_new_from_icon_name("pan-end-symbolic", GTK_ICON_SIZE_MENU);
gtk_container_add(GTK_CONTAINER(dw->Next_toolbutton), arrow);
gtk_table_attach(GTK_TABLE(dw->dtable_h), dw->Next_toolbutton, i, i+1, 0, 1
, (GTK_FILL), (0), 0, 0);
diff --git a/src/plugins/vcalendar/month-view.c b/src/plugins/vcalendar/month-view.c
index a72fc55fa..bf3cbcd0e 100644
--- a/src/plugins/vcalendar/month-view.c
+++ b/src/plugins/vcalendar/month-view.c
@@ -870,7 +870,7 @@ static void build_month_view_table(month_win *mw)
mw->Previous_toolbutton = gtk_event_box_new();
gtk_event_box_set_visible_window(GTK_EVENT_BOX(mw->Previous_toolbutton), FALSE);
gtk_container_set_border_width(GTK_CONTAINER(mw->Previous_toolbutton), 0);
- arrow = gtk_arrow_new(GTK_ARROW_LEFT, GTK_SHADOW_NONE);
+ arrow = gtk_image_new_from_icon_name("pan-start-symbolic", GTK_ICON_SIZE_MENU);
gtk_container_add(GTK_CONTAINER(mw->Previous_toolbutton), arrow);
gtk_table_attach(GTK_TABLE(mw->dtable_h), mw->Previous_toolbutton, i, i+1, 0, 1
, (GTK_FILL), (0), 0, 0);
@@ -890,7 +890,7 @@ static void build_month_view_table(month_win *mw)
mw->Next_toolbutton = gtk_event_box_new();
gtk_event_box_set_visible_window(GTK_EVENT_BOX(mw->Next_toolbutton), FALSE);
gtk_container_set_border_width(GTK_CONTAINER(mw->Next_toolbutton), 0);
- arrow = gtk_arrow_new(GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
+ arrow = gtk_image_new_from_icon_name("pan-end-symbolic", GTK_ICON_SIZE_MENU);
gtk_container_add(GTK_CONTAINER(mw->Next_toolbutton), arrow);
gtk_table_attach(GTK_TABLE(mw->dtable_h), mw->Next_toolbutton, i, i+1, 0, 1
, (GTK_FILL), (0), 0, 0);
diff --git a/src/prefs_actions.c b/src/prefs_actions.c
index 87bf8268b..33584d21a 100644
--- a/src/prefs_actions.c
+++ b/src/prefs_actions.c
@@ -310,7 +310,7 @@ static void prefs_actions_create(MainWindow *mainwin)
gtk_widget_show(reg_hbox);
gtk_box_pack_start(GTK_BOX(vbox1), reg_hbox, FALSE, FALSE, 0);
- arrow = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_OUT);
+ arrow = gtk_image_new_from_icon_name("pan-down-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_show(arrow);
gtk_box_pack_start(GTK_BOX(reg_hbox), arrow, FALSE, FALSE, 0);
gtk_widget_set_size_request(arrow, -1, 16);
diff --git a/src/prefs_customheader.c b/src/prefs_customheader.c
index cd74b4608..c25e5134d 100644
--- a/src/prefs_customheader.c
+++ b/src/prefs_customheader.c
@@ -246,7 +246,7 @@ static void prefs_custom_header_create(void)
gtk_widget_show (reg_hbox);
gtk_box_pack_start (GTK_BOX (vbox1), reg_hbox, FALSE, FALSE, 0);
- arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_OUT);
+ arrow = gtk_image_new_from_icon_name("pan-down-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_show (arrow);
gtk_box_pack_start (GTK_BOX (reg_hbox), arrow, FALSE, FALSE, 0);
diff --git a/src/prefs_filtering.c b/src/prefs_filtering.c
index 18dec94d3..4a3b29405 100644
--- a/src/prefs_filtering.c
+++ b/src/prefs_filtering.c
@@ -457,7 +457,7 @@ static void prefs_filtering_create(void)
gtk_widget_show (reg_hbox);
gtk_box_pack_start (GTK_BOX (vbox1), reg_hbox, FALSE, FALSE, 0);
- arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_OUT);
+ arrow = gtk_image_new_from_icon_name("pan-down-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_show (arrow);
gtk_box_pack_start (GTK_BOX (reg_hbox), arrow, FALSE, FALSE, 0);
gtk_widget_set_size_request (arrow, -1, 16);
diff --git a/src/prefs_filtering_action.c b/src/prefs_filtering_action.c
index 6cd9db23e..a5287ae85 100644
--- a/src/prefs_filtering_action.c
+++ b/src/prefs_filtering_action.c
@@ -564,7 +564,7 @@ static void prefs_filtering_action_create(void)
reg_hbox = gtk_hbox_new(FALSE, 4);
gtk_box_pack_start(GTK_BOX(vbox1), reg_hbox, FALSE, FALSE, 0);
- arrow = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_OUT);
+ arrow = gtk_image_new_from_icon_name("pan-down-symbolic", GTK_ICON_SIZE_MENU);
gtk_box_pack_start(GTK_BOX(reg_hbox), arrow, FALSE, FALSE, 0);
gtk_widget_set_size_request(arrow, -1, 16);
diff --git a/src/prefs_matcher.c b/src/prefs_matcher.c
index c12254d7a..743b1519b 100644
--- a/src/prefs_matcher.c
+++ b/src/prefs_matcher.c
@@ -779,7 +779,7 @@ static void prefs_matcher_create(void)
reg_hbox = gtk_hbox_new(FALSE, HSPACING_NARROW);
gtk_box_pack_start(GTK_BOX(vbox1), reg_hbox, FALSE, FALSE, 0);
- arrow = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_OUT);
+ arrow = gtk_image_new_from_icon_name("pan-down-symbolic", GTK_ICON_SIZE_MENU);
gtk_box_pack_start(GTK_BOX(reg_hbox), arrow, FALSE, FALSE, 0);
gtk_widget_set_size_request(arrow, -1, 16);
diff --git a/src/prefs_toolbar.c b/src/prefs_toolbar.c
index 2be81484c..4296cc6ce 100644
--- a/src/prefs_toolbar.c
+++ b/src/prefs_toolbar.c
@@ -1000,7 +1000,7 @@ static void prefs_toolbar_create(ToolbarPage *prefs_toolbar)
gtk_box_pack_start(GTK_BOX(main_vbox), reg_hbox, FALSE, FALSE, 0);
gtk_container_set_border_width(GTK_CONTAINER(reg_hbox), 10);
- arrow = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_OUT);
+ arrow = gtk_image_new_from_icon_name("pan-down-symbolic", GTK_ICON_SIZE_MENU);
gtk_box_pack_start(GTK_BOX(reg_hbox), arrow, FALSE, FALSE, 0);
gtk_widget_set_size_request(arrow, -1, 16);
diff --git a/src/summaryview.c b/src/summaryview.c
index 7087716cb..d402ed864 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -615,7 +615,7 @@ SummaryView *summary_create(MainWindow *mainwin)
gtk_box_pack_end(GTK_BOX(hbox), toggle_eventbox, FALSE, FALSE, 4);
- toggle_arrow = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_OUT);
+ toggle_arrow = gtk_image_new_from_icon_name("pan-down-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_show(toggle_arrow);
gtk_container_add(GTK_CONTAINER(toggle_eventbox), toggle_arrow);
g_signal_connect(G_OBJECT(toggle_eventbox), "button_press_event",
@@ -2895,10 +2895,10 @@ static void summary_set_column_titles(SummaryView *summaryview)
if (summaryview->sort_key == sort_by[type] ||
(summaryview->sort_key == SORT_BY_THREAD_DATE &&
sort_by[SORT_BY_DATE] && type == S_COL_DATE)) {
- arrow = gtk_arrow_new
+ arrow = gtk_image_new_from_icon_name
(summaryview->sort_type == SORT_ASCENDING
- ? GTK_ARROW_DOWN : GTK_ARROW_UP,
- GTK_SHADOW_IN);
+ ? "pan-down-symbolic" : "pan-up-symbolic",
+ GTK_ICON_SIZE_MENU);
gtk_widget_set_size_request(GTK_WIDGET(arrow), 10, 10);
if (justify == GTK_JUSTIFY_RIGHT)
gtk_box_pack_start(GTK_BOX(hbox), arrow,
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list