File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 3131#include <glib/gi18n.h>
3232#include <gtk/gtk.h>
3333
34- #define EPHY_ZOOM_ACTION_GET_PRIVATE (object )(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_ZOOM_ACTION, EphyZoomActionPrivate))
35-
3634struct _EphyZoomActionPrivate
3735{
3836 float zoom ;
6058
6159static guint signals [LAST_SIGNAL ] = { 0 };
6260
63- G_DEFINE_TYPE (EphyZoomAction , ephy_zoom_action , GTK_TYPE_ACTION )
61+ G_DEFINE_TYPE_WITH_PRIVATE (EphyZoomAction , ephy_zoom_action , GTK_TYPE_ACTION )
6462
6563static void
6664zoom_to_level_cb (EphyZoomControl * control ,
@@ -274,14 +272,12 @@ ephy_zoom_action_class_init (EphyZoomActionClass *class)
274272 G_TYPE_NONE ,
275273 1 ,
276274 G_TYPE_FLOAT );
277-
278- g_type_class_add_private (object_class , sizeof (EphyZoomActionPrivate ));
279275}
280276
281277static void
282278ephy_zoom_action_init (EphyZoomAction * action )
283279{
284- action -> priv = EPHY_ZOOM_ACTION_GET_PRIVATE (action );
280+ action -> priv = ephy_zoom_action_get_instance_private (action );
285281
286282 action -> priv -> zoom = 1.0 ;
287283}
You can’t perform that action at this time.
0 commit comments