[vinagre/gnome-3-2] Do not use deprecated gtk_widget_modify_bg()
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre/gnome-3-2] Do not use deprecated gtk_widget_modify_bg()
- Date: Sat, 1 Oct 2011 05:55:32 +0000 (UTC)
commit eba994f4299a5096f0d35d8a7999d4c66d7789f1
Author: Alexandre Rostovtsev <tetromino gmail com>
Date: Fri Sep 30 13:11:25 2011 -0400
Do not use deprecated gtk_widget_modify_bg()
Use gtk_widget_override_background_color() instead of deprecated
gtk_widget_modify_bg(). Fixes an implicit function declaration warning
when building with GTK_DISABLE_DEPRECATED, bug 660531.
vinagre/vinagre-tab.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vinagre/vinagre-tab.c b/vinagre/vinagre-tab.c
index a53543f..041de8f 100644
--- a/vinagre/vinagre-tab.c
+++ b/vinagre/vinagre-tab.c
@@ -634,7 +634,7 @@ void
vinagre_tab_add_view (VinagreTab *tab, GtkWidget *view)
{
GtkWidget *viewport;
- GdkColor color = {0,};
+ GdkRGBA color = {0,};
g_return_if_fail (VINAGRE_IS_TAB (tab));
@@ -643,7 +643,7 @@ vinagre_tab_add_view (VinagreTab *tab, GtkWidget *view)
view);
viewport = gtk_bin_get_child (GTK_BIN (tab->priv->scroll));
gtk_viewport_set_shadow_type(GTK_VIEWPORT (viewport), GTK_SHADOW_NONE);
- gtk_widget_modify_bg (viewport, GTK_STATE_NORMAL, &color);
+ gtk_widget_override_background_color (viewport, GTK_STATE_NORMAL, &color);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]