diff options
author | Pablo Barciela <[email protected]> | 2018-02-14 04:03:57 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-02-14 09:26:08 +0100 |
commit | 70a60111e00fe834e1303d87265c1aa65cb1f086 (patch) | |
tree | 88faea28f15ac67a81e05724b068f772a8ab8057 /mate-dictionary/libgdict | |
parent | dab6502bbced250a11781b0239300af3d787b4a4 (diff) | |
download | mate-utils-70a60111e00fe834e1303d87265c1aa65cb1f086.tar.bz2 mate-utils-70a60111e00fe834e1303d87265c1aa65cb1f086.tar.xz |
avoid deprecated GtkStock
Diffstat (limited to 'mate-dictionary/libgdict')
-rw-r--r-- | mate-dictionary/libgdict/gdict-database-chooser.c | 6 | ||||
-rw-r--r-- | mate-dictionary/libgdict/gdict-source-chooser.c | 6 | ||||
-rw-r--r-- | mate-dictionary/libgdict/gdict-strategy-chooser.c | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/mate-dictionary/libgdict/gdict-database-chooser.c b/mate-dictionary/libgdict/gdict-database-chooser.c index 37572abe..8ccc8201 100644 --- a/mate-dictionary/libgdict/gdict-database-chooser.c +++ b/mate-dictionary/libgdict/gdict-database-chooser.c @@ -1130,7 +1130,11 @@ gdict_database_chooser_add_button (GdictDatabaseChooser *chooser, priv = chooser->priv; - button = gtk_button_new_from_stock (button_text); + button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON, + "label", button_text, + "use-stock", TRUE, + "use-underline", TRUE, + NULL)); gtk_widget_set_can_default (button, TRUE); diff --git a/mate-dictionary/libgdict/gdict-source-chooser.c b/mate-dictionary/libgdict/gdict-source-chooser.c index 54b77f4e..1579cc19 100644 --- a/mate-dictionary/libgdict/gdict-source-chooser.c +++ b/mate-dictionary/libgdict/gdict-source-chooser.c @@ -884,7 +884,11 @@ gdict_source_chooser_add_button (GdictSourceChooser *chooser, priv = chooser->priv; - button = gtk_button_new_from_stock (button_text); + button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON, + "label", button_text, + "use-stock", TRUE, + "use-underline", TRUE, + NULL)); gtk_widget_set_can_default (button, TRUE); diff --git a/mate-dictionary/libgdict/gdict-strategy-chooser.c b/mate-dictionary/libgdict/gdict-strategy-chooser.c index 4b6f1ecd..a3a28112 100644 --- a/mate-dictionary/libgdict/gdict-strategy-chooser.c +++ b/mate-dictionary/libgdict/gdict-strategy-chooser.c @@ -1074,7 +1074,11 @@ gdict_strategy_chooser_add_button (GdictStrategyChooser *chooser, priv = chooser->priv; - button = gtk_button_new_from_stock (button_text); + button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON, + "label", button_text, + "use-stock", TRUE, + "use-underline", TRUE, + NULL)); gtk_widget_set_can_default (button, TRUE); |