File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 2828#include <gtk/gtk.h>
2929#include <glib/gi18n.h>
3030
31- #define EPHY_ZOOM_CONTROL_GET_PRIVATE (object )\
32- (G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_ZOOM_CONTROL, EphyZoomControlPrivate))
33-
3431struct _EphyZoomControlPrivate
3532{
3633 GtkComboBox * combo ;
6259
6360static guint signals [LAST_SIGNAL ] = { 0 };
6461
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 )
6663
6764static void
6865combo_changed_cb (GtkComboBox * combo , EphyZoomControl * control )
@@ -160,7 +157,7 @@ ephy_zoom_control_init (EphyZoomControl *control)
160157 GtkTreeIter iter ;
161158 guint i ;
162159
163- p = EPHY_ZOOM_CONTROL_GET_PRIVATE (control );
160+ p = ephy_zoom_control_get_instance_private (control );
164161 control -> priv = p ;
165162
166163 p -> zoom = 1.0 ;
@@ -322,8 +319,6 @@ ephy_zoom_control_class_init (EphyZoomControlClass *klass)
322319 G_TYPE_NONE ,
323320 1 ,
324321 G_TYPE_FLOAT );
325-
326- g_type_class_add_private (object_class , sizeof (EphyZoomControlPrivate ));
327322}
328323
329324void
You can’t perform that action at this time.
0 commit comments