summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-03-22 02:25:05 +0000
committerjstebbins <[email protected]>2011-03-22 02:25:05 +0000
commit4043eb2295d206e56267a05d90d3fced4f4d0010 (patch)
treeacb8cf09b75c69a29465072a704a62c8cd393b42 /gtk
parent0d54d468fbfb98ff2394be2274ec499c2cd07fe0 (diff)
LinGui: use g_object_set to set widget properties
instead of directly setting the member variables. The member variables dissepear into priv data in gtk+-3.0. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3868 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/renderer_button.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/src/renderer_button.c b/gtk/src/renderer_button.c
index 52cb9864d..5876e196b 100644
--- a/gtk/src/renderer_button.c
+++ b/gtk/src/renderer_button.c
@@ -80,9 +80,9 @@ custom_cell_renderer_button_get_type (void)
static void
custom_cell_renderer_button_init (CustomCellRendererButton *cellbutton)
{
- GTK_CELL_RENDERER(cellbutton)->mode = GTK_CELL_RENDERER_MODE_ACTIVATABLE;
- GTK_CELL_RENDERER(cellbutton)->xpad = 2;
- GTK_CELL_RENDERER(cellbutton)->ypad = 2;
+ g_object_set(cellbutton, "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL);
+ g_object_set(cellbutton, "xpad", 2, NULL);
+ g_object_set(cellbutton, "ypad", 2, NULL);
}
/***************************************************************************