[gnome-online-accounts] Replace deprecated GTK+ API
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] Replace deprecated GTK+ API
- Date: Thu, 30 Jan 2014 15:37:56 +0000 (UTC)
commit fe5f1f9157b0bf19d73ed29cea16c348fdec6a13
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Jan 17 14:33:42 2014 +0100
Replace deprecated GTK+ API
Bump minimum GTK+ version to 3.11.1.
configure.ac | 2 +-
src/goabackend/nautilus-floating-bar.c | 6 +++---
src/goabackend/nautilus-floating-bar.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4670fc7..6644337 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,7 +87,7 @@ PKG_CHECK_MODULES(GLIB, [glib-2.0 gio-2.0 gio-unix-2.0 >= 2.35])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
-PKG_CHECK_MODULES(GTK, [gtk+-3.0 >= 3.5.1])
+PKG_CHECK_MODULES(GTK, [gtk+-3.0 >= 3.11.1])
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
diff --git a/src/goabackend/nautilus-floating-bar.c b/src/goabackend/nautilus-floating-bar.c
index e88f478..a3676fb 100644
--- a/src/goabackend/nautilus-floating-bar.c
+++ b/src/goabackend/nautilus-floating-bar.c
@@ -228,7 +228,7 @@ nautilus_floating_bar_constructed (GObject *obj)
self->priv->spinner = w;
gtk_widget_set_size_request (w, 16, 16);
- gtk_widget_set_margin_left (w, 8);
+ gtk_widget_set_margin_start (w, 8);
w = gtk_label_new (NULL);
gtk_label_set_ellipsize (GTK_LABEL (w), PANGO_ELLIPSIZE_MIDDLE);
@@ -339,12 +339,12 @@ nautilus_floating_bar_new (const gchar *label,
void
nautilus_floating_bar_add_action (NautilusFloatingBar *self,
- const gchar *stock_id,
+ const gchar *icon_name,
gint action_id)
{
GtkWidget *w, *button;
- w = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_MENU);
+ w = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
gtk_widget_show (w);
button = gtk_button_new ();
diff --git a/src/goabackend/nautilus-floating-bar.h b/src/goabackend/nautilus-floating-bar.h
index 935e650..d0521a5 100644
--- a/src/goabackend/nautilus-floating-bar.h
+++ b/src/goabackend/nautilus-floating-bar.h
@@ -65,7 +65,7 @@ void nautilus_floating_bar_set_show_spinner (NautilusFloatingBar *self,
gboolean show_spinner);
void nautilus_floating_bar_add_action (NautilusFloatingBar *self,
- const gchar *stock_id,
+ const gchar *icon_name,
gint action_id);
void nautilus_floating_bar_cleanup_actions (NautilusFloatingBar *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]