]> granicus.if.org Git - handbrake/commitdiff
LinGui: use g_object_set to set widget properties
authorjstebbins <jstebbins.hb@gmail.com>
Tue, 22 Mar 2011 02:25:05 +0000 (02:25 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Tue, 22 Mar 2011 02:25:05 +0000 (02:25 +0000)
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

gtk/src/renderer_button.c

index 52cb9864d500d03693fcb482ec9130baf0340880..5876e196b7f3585528fd54bfa4c92a2bd6241fd3 100644 (file)
@@ -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);
 }
 
 /***************************************************************************