File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 28
28
#include <gtk/gtk.h>
29
29
#include <glib/gi18n.h>
30
30
31
- #define EPHY_ZOOM_CONTROL_GET_PRIVATE (object )\
32
- (G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_ZOOM_CONTROL, EphyZoomControlPrivate))
33
-
34
31
struct _EphyZoomControlPrivate
35
32
{
36
33
GtkComboBox * combo ;
62
59
63
60
static guint signals [LAST_SIGNAL ] = { 0 };
64
61
65
- G_DEFINE_TYPE (EphyZoomControl , ephy_zoom_control , GTK_TYPE_TOOL_ITEM )
62
+ G_DEFINE_TYPE_WITH_PRIVATE (EphyZoomControl , ephy_zoom_control , GTK_TYPE_TOOL_ITEM )
66
63
67
64
static void
68
65
combo_changed_cb (GtkComboBox * combo , EphyZoomControl * control )
@@ -160,7 +157,7 @@ ephy_zoom_control_init (EphyZoomControl *control)
160
157
GtkTreeIter iter ;
161
158
guint i ;
162
159
163
- p = EPHY_ZOOM_CONTROL_GET_PRIVATE (control );
160
+ p = ephy_zoom_control_get_instance_private (control );
164
161
control -> priv = p ;
165
162
166
163
p -> zoom = 1.0 ;
@@ -322,8 +319,6 @@ ephy_zoom_control_class_init (EphyZoomControlClass *klass)
322
319
G_TYPE_NONE ,
323
320
1 ,
324
321
G_TYPE_FLOAT );
325
-
326
- g_type_class_add_private (object_class , sizeof (EphyZoomControlPrivate ));
327
322
}
328
323
329
324
void
You can’t perform that action at this time.
0 commit comments