Skip to content
Permalink
Browse files

[ephy-zoom-control] Avoid deprecated g_type_class_add_private

  • Loading branch information...
yetist authored and raveit65 committed Jan 29, 2019
1 parent d9c803e commit 9b8716826822006ec249ba99fd9576ced15a1fc7
Showing with 2 additions and 7 deletions.
  1. +2 −7 cut-n-paste/zoom-control/ephy-zoom-control.c
@@ -28,9 +28,6 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>

#define EPHY_ZOOM_CONTROL_GET_PRIVATE(object)\
(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_ZOOM_CONTROL, EphyZoomControlPrivate))

struct _EphyZoomControlPrivate
{
GtkComboBox *combo;
@@ -62,7 +59,7 @@ enum

static guint signals[LAST_SIGNAL] = { 0 };

G_DEFINE_TYPE (EphyZoomControl, ephy_zoom_control, GTK_TYPE_TOOL_ITEM)
G_DEFINE_TYPE_WITH_PRIVATE (EphyZoomControl, ephy_zoom_control, GTK_TYPE_TOOL_ITEM)

static void
combo_changed_cb (GtkComboBox *combo, EphyZoomControl *control)
@@ -160,7 +157,7 @@ ephy_zoom_control_init (EphyZoomControl *control)
GtkTreeIter iter;
guint i;

p = EPHY_ZOOM_CONTROL_GET_PRIVATE (control);
p = ephy_zoom_control_get_instance_private (control);
control->priv = p;

p->zoom = 1.0;
@@ -322,8 +319,6 @@ ephy_zoom_control_class_init (EphyZoomControlClass *klass)
G_TYPE_NONE,
1,
G_TYPE_FLOAT);

g_type_class_add_private (object_class, sizeof (EphyZoomControlPrivate));
}

void

0 comments on commit 9b87168

Please sign in to comment.
You can’t perform that action at this time.