diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2017-08-11 17:00:10 -0700 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2017-08-11 17:00:46 -0700 |
commit | de35ad6dc1a154460d4a14feb60e6c52e3f255f7 (patch) | |
tree | 4b18423a08f64c71325e1f0336260b408193b441 | |
parent | 4774e1aa92af59d1c28cc55343a13237ba61bfc9 (diff) |
basic-tutorial-5: drop calls to gtk_button_new_from_stock()
The gtk_button_new_from_stock() function has been deprecated since GTK+ 3.10.
Use gtk_button_new_from_icon_name() instead
-rw-r--r-- | examples/tutorials/basic-tutorial-5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tutorials/basic-tutorial-5.c b/examples/tutorials/basic-tutorial-5.c index 9ea646f..33a47fe 100644 --- a/examples/tutorials/basic-tutorial-5.c +++ b/examples/tutorials/basic-tutorial-5.c @@ -111,13 +111,13 @@ static void create_ui (CustomData *data) { g_signal_connect (video_window, "realize", G_CALLBACK (realize_cb), data); g_signal_connect (video_window, "draw", G_CALLBACK (draw_cb), data); - play_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_PLAY); + play_button = gtk_button_new_from_icon_name ("media-playback-start", GTK_ICON_SIZE_SMALL_TOOLBAR); g_signal_connect (G_OBJECT (play_button), "clicked", G_CALLBACK (play_cb), data); - pause_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_PAUSE); + pause_button = gtk_button_new_from_icon_name ("media-playback-pause", GTK_ICON_SIZE_SMALL_TOOLBAR); g_signal_connect (G_OBJECT (pause_button), "clicked", G_CALLBACK (pause_cb), data); - stop_button = gtk_button_new_from_stock (GTK_STOCK_MEDIA_STOP); + stop_button = gtk_button_new_from_icon_name ("media-playback-stop", GTK_ICON_SIZE_SMALL_TOOLBAR); g_signal_connect (G_OBJECT (stop_button), "clicked", G_CALLBACK (stop_cb), data); data->slider = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1); |