[gnome-disk-utility] libgdu: Fix deprecation warnings
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] libgdu: Fix deprecation warnings
- Date: Mon, 20 Jan 2014 07:29:55 +0000 (UTC)
commit 366f30648021145c1ad3120065629ff3c101683f
Author: David Zeuthen <zeuthen gmail com>
Date: Sat Jan 18 17:22:09 2014 -0800
libgdu: Fix deprecation warnings
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/libgdu/gduutils.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libgdu/gduutils.c b/src/libgdu/gduutils.c
index 2da93dd..05d5846 100644
--- a/src/libgdu/gduutils.c
+++ b/src/libgdu/gduutils.c
@@ -152,24 +152,24 @@ gdu_utils_create_info_bar (GtkMessageType message_type,
switch (message_type)
{
case GTK_MESSAGE_QUESTION:
- stock_id = GTK_STOCK_DIALOG_QUESTION;
+ stock_id = "dialog-question";
break;
default: /* explicit fall-through */
case GTK_MESSAGE_OTHER: /* explicit fall-through */
case GTK_MESSAGE_INFO:
- stock_id = GTK_STOCK_DIALOG_INFO;
+ stock_id = "dialog-information";
break;
case GTK_MESSAGE_WARNING:
- stock_id = GTK_STOCK_DIALOG_WARNING;
+ stock_id = "dialog-warning";
break;
case GTK_MESSAGE_ERROR:
- stock_id = GTK_STOCK_DIALOG_ERROR;
+ stock_id = "dialog-error";
break;
}
- image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_BUTTON);
+ image = gtk_image_new_from_icon_name (stock_id, GTK_ICON_SIZE_BUTTON);
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, TRUE, 0);
label = gtk_label_new (NULL);
@@ -730,7 +730,7 @@ gdu_utils_show_confirmation (GtkWindow *parent_window,
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_NEVER,
GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), GTK_SHADOW_OUT);
- gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled_window), vbox);
+ gtk_container_add (GTK_CONTAINER (scrolled_window), vbox);
gtk_scrolled_window_set_min_content_height (GTK_SCROLLED_WINDOW (scrolled_window), 125);
gtk_box_pack_start (GTK_BOX (gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (dialog))),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]