forked from AuroraMiddleware/gtk
gtk: Don't use GObjectClass.constructor
Use the newer constructed instead, which has a fast path in GObject.
This commit is contained in:
parent
66492678b5
commit
9c37b3de74
@ -349,21 +349,13 @@ add_action_widgets (GtkAssistant *assistant)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_assistant_constructor (GType type,
|
gtk_assistant_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
GtkAssistant *assistant = GTK_ASSISTANT (object);
|
||||||
GtkAssistant *assistant;
|
GtkAssistantPrivate *priv = assistant->priv;
|
||||||
GtkAssistantPrivate *priv;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_assistant_parent_class)->constructor (type,
|
G_OBJECT_CLASS (gtk_assistant_parent_class)->constructed (object);
|
||||||
n_construct_properties,
|
|
||||||
construct_params);
|
|
||||||
|
|
||||||
assistant = GTK_ASSISTANT (object);
|
|
||||||
priv = assistant->priv;
|
|
||||||
|
|
||||||
priv->constructed = TRUE;
|
priv->constructed = TRUE;
|
||||||
if (priv->use_header_bar == -1)
|
if (priv->use_header_bar == -1)
|
||||||
@ -371,8 +363,6 @@ gtk_assistant_constructor (GType type,
|
|||||||
|
|
||||||
add_action_widgets (assistant);
|
add_action_widgets (assistant);
|
||||||
apply_use_header_bar (assistant);
|
apply_use_header_bar (assistant);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -386,7 +376,7 @@ gtk_assistant_class_init (GtkAssistantClass *class)
|
|||||||
widget_class = (GtkWidgetClass *) class;
|
widget_class = (GtkWidgetClass *) class;
|
||||||
container_class = (GtkContainerClass *) class;
|
container_class = (GtkContainerClass *) class;
|
||||||
|
|
||||||
gobject_class->constructor = gtk_assistant_constructor;
|
gobject_class->constructed = gtk_assistant_constructed;
|
||||||
gobject_class->set_property = gtk_assistant_set_property;
|
gobject_class->set_property = gtk_assistant_set_property;
|
||||||
gobject_class->get_property = gtk_assistant_get_property;
|
gobject_class->get_property = gtk_assistant_get_property;
|
||||||
|
|
||||||
|
@ -141,9 +141,7 @@ static GType gtk_button_child_type (GtkContainer *container);
|
|||||||
static void gtk_button_finish_activate (GtkButton *button,
|
static void gtk_button_finish_activate (GtkButton *button,
|
||||||
gboolean do_it);
|
gboolean do_it);
|
||||||
|
|
||||||
static GObject* gtk_button_constructor (GType type,
|
static void gtk_button_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params);
|
|
||||||
static void gtk_button_construct_child (GtkButton *button);
|
static void gtk_button_construct_child (GtkButton *button);
|
||||||
static void gtk_button_state_changed (GtkWidget *widget,
|
static void gtk_button_state_changed (GtkWidget *widget,
|
||||||
GtkStateType previous_state);
|
GtkStateType previous_state);
|
||||||
@ -205,7 +203,7 @@ gtk_button_class_init (GtkButtonClass *klass)
|
|||||||
widget_class = (GtkWidgetClass*) klass;
|
widget_class = (GtkWidgetClass*) klass;
|
||||||
container_class = (GtkContainerClass*) klass;
|
container_class = (GtkContainerClass*) klass;
|
||||||
|
|
||||||
gobject_class->constructor = gtk_button_constructor;
|
gobject_class->constructed = gtk_button_constructed;
|
||||||
gobject_class->dispose = gtk_button_dispose;
|
gobject_class->dispose = gtk_button_dispose;
|
||||||
gobject_class->set_property = gtk_button_set_property;
|
gobject_class->set_property = gtk_button_set_property;
|
||||||
gobject_class->get_property = gtk_button_get_property;
|
gobject_class->get_property = gtk_button_get_property;
|
||||||
@ -671,28 +669,18 @@ gtk_button_destroy (GtkWidget *widget)
|
|||||||
GTK_WIDGET_CLASS (gtk_button_parent_class)->destroy (widget);
|
GTK_WIDGET_CLASS (gtk_button_parent_class)->destroy (widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject*
|
static void
|
||||||
gtk_button_constructor (GType type,
|
gtk_button_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
GtkButton *button = GTK_BUTTON (object);
|
||||||
GtkButton *button;
|
GtkButtonPrivate *priv = button->priv;
|
||||||
GtkButtonPrivate *priv;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_button_parent_class)->constructor (type,
|
G_OBJECT_CLASS (gtk_button_parent_class)->constructed (object);
|
||||||
n_construct_properties,
|
|
||||||
construct_params);
|
|
||||||
|
|
||||||
button = GTK_BUTTON (object);
|
|
||||||
priv = button->priv;
|
|
||||||
|
|
||||||
priv->constructed = TRUE;
|
priv->constructed = TRUE;
|
||||||
|
|
||||||
if (priv->label_text != NULL)
|
if (priv->label_text != NULL)
|
||||||
gtk_button_construct_child (button);
|
gtk_button_construct_child (button);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,10 +49,8 @@
|
|||||||
* they all share the same height but may have variable widths).
|
* they all share the same height but may have variable widths).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static GObject *gtk_cell_view_constructor (GType type,
|
static void gtk_cell_view_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
static void gtk_cell_view_get_property (GObject *object,
|
||||||
GObjectConstructParam *construct_properties);
|
|
||||||
static void gtk_cell_view_get_property (GObject *object,
|
|
||||||
guint param_id,
|
guint param_id,
|
||||||
GValue *value,
|
GValue *value,
|
||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
@ -167,7 +165,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
|
|||||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||||
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
|
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
|
||||||
|
|
||||||
gobject_class->constructor = gtk_cell_view_constructor;
|
gobject_class->constructed = gtk_cell_view_constructed;
|
||||||
gobject_class->get_property = gtk_cell_view_get_property;
|
gobject_class->get_property = gtk_cell_view_get_property;
|
||||||
gobject_class->set_property = gtk_cell_view_set_property;
|
gobject_class->set_property = gtk_cell_view_set_property;
|
||||||
gobject_class->finalize = gtk_cell_view_finalize;
|
gobject_class->finalize = gtk_cell_view_finalize;
|
||||||
@ -342,20 +340,13 @@ gtk_cell_view_cell_layout_init (GtkCellLayoutIface *iface)
|
|||||||
iface->get_area = gtk_cell_view_cell_layout_get_area;
|
iface->get_area = gtk_cell_view_cell_layout_get_area;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_cell_view_constructor (GType type,
|
gtk_cell_view_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_properties)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
GtkCellView *view = GTK_CELL_VIEW (object);
|
||||||
GtkCellView *view;
|
GtkCellViewPrivate *priv = view->priv;
|
||||||
GtkCellViewPrivate *priv;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_cell_view_parent_class)->constructor
|
G_OBJECT_CLASS (gtk_cell_view_parent_class)->constructed (object);
|
||||||
(type, n_construct_properties, construct_properties);
|
|
||||||
|
|
||||||
view = GTK_CELL_VIEW (object);
|
|
||||||
priv = view->priv;
|
|
||||||
|
|
||||||
if (!priv->area)
|
if (!priv->area)
|
||||||
{
|
{
|
||||||
@ -369,8 +360,6 @@ gtk_cell_view_constructor (GType type,
|
|||||||
priv->size_changed_id =
|
priv->size_changed_id =
|
||||||
g_signal_connect (priv->context, "notify",
|
g_signal_connect (priv->context, "notify",
|
||||||
G_CALLBACK (context_size_changed_cb), view);
|
G_CALLBACK (context_size_changed_cb), view);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -254,9 +254,7 @@ static guint combo_box_signals[LAST_SIGNAL] = {0,};
|
|||||||
|
|
||||||
static void gtk_combo_box_cell_layout_init (GtkCellLayoutIface *iface);
|
static void gtk_combo_box_cell_layout_init (GtkCellLayoutIface *iface);
|
||||||
static void gtk_combo_box_cell_editable_init (GtkCellEditableIface *iface);
|
static void gtk_combo_box_cell_editable_init (GtkCellEditableIface *iface);
|
||||||
static GObject *gtk_combo_box_constructor (GType type,
|
static void gtk_combo_box_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_properties);
|
|
||||||
static void gtk_combo_box_dispose (GObject *object);
|
static void gtk_combo_box_dispose (GObject *object);
|
||||||
static void gtk_combo_box_finalize (GObject *object);
|
static void gtk_combo_box_finalize (GObject *object);
|
||||||
static void gtk_combo_box_destroy (GtkWidget *widget);
|
static void gtk_combo_box_destroy (GtkWidget *widget);
|
||||||
@ -514,7 +512,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
|
|||||||
widget_class->direction_changed = gtk_combo_box_direction_changed;
|
widget_class->direction_changed = gtk_combo_box_direction_changed;
|
||||||
|
|
||||||
object_class = (GObjectClass *)klass;
|
object_class = (GObjectClass *)klass;
|
||||||
object_class->constructor = gtk_combo_box_constructor;
|
object_class->constructed = gtk_combo_box_constructed;
|
||||||
object_class->dispose = gtk_combo_box_dispose;
|
object_class->dispose = gtk_combo_box_dispose;
|
||||||
object_class->finalize = gtk_combo_box_finalize;
|
object_class->finalize = gtk_combo_box_finalize;
|
||||||
object_class->set_property = gtk_combo_box_set_property;
|
object_class->set_property = gtk_combo_box_set_property;
|
||||||
@ -4793,20 +4791,13 @@ gtk_combo_box_format_entry_text (GtkComboBox *combo_box,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_combo_box_constructor (GType type,
|
gtk_combo_box_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_properties)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
GtkComboBox *combo_box = GTK_COMBO_BOX (object);
|
||||||
GtkComboBox *combo_box;
|
GtkComboBoxPrivate *priv = combo_box->priv;
|
||||||
GtkComboBoxPrivate *priv;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_combo_box_parent_class)->constructor
|
G_OBJECT_CLASS (gtk_combo_box_parent_class)->constructed (object);
|
||||||
(type, n_construct_properties, construct_properties);
|
|
||||||
|
|
||||||
combo_box = GTK_COMBO_BOX (object);
|
|
||||||
priv = combo_box->priv;
|
|
||||||
|
|
||||||
if (!priv->area)
|
if (!priv->area)
|
||||||
{
|
{
|
||||||
@ -4844,8 +4835,6 @@ gtk_combo_box_constructor (GType type,
|
|||||||
g_signal_connect (combo_box, "changed",
|
g_signal_connect (combo_box, "changed",
|
||||||
G_CALLBACK (gtk_combo_box_entry_active_changed), NULL);
|
G_CALLBACK (gtk_combo_box_entry_active_changed), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -92,16 +92,12 @@ G_DEFINE_TYPE_WITH_CODE (GtkComboBoxText, gtk_combo_box_text, GTK_TYPE_COMBO_BOX
|
|||||||
G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
|
G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
|
||||||
gtk_combo_box_text_buildable_interface_init));
|
gtk_combo_box_text_buildable_interface_init));
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_combo_box_text_constructor (GType type,
|
gtk_combo_box_text_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_properties)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
|
||||||
const gint text_column = 0;
|
const gint text_column = 0;
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_combo_box_text_parent_class)->constructor
|
G_OBJECT_CLASS (gtk_combo_box_text_parent_class)->constructed (object);
|
||||||
(type, n_construct_properties, construct_properties);
|
|
||||||
|
|
||||||
gtk_combo_box_set_entry_text_column (GTK_COMBO_BOX (object), text_column);
|
gtk_combo_box_set_entry_text_column (GTK_COMBO_BOX (object), text_column);
|
||||||
gtk_combo_box_set_id_column (GTK_COMBO_BOX (object), 1);
|
gtk_combo_box_set_id_column (GTK_COMBO_BOX (object), 1);
|
||||||
@ -116,8 +112,6 @@ gtk_combo_box_text_constructor (GType type,
|
|||||||
"text", text_column,
|
"text", text_column,
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -136,7 +130,7 @@ gtk_combo_box_text_class_init (GtkComboBoxTextClass *klass)
|
|||||||
GObjectClass *object_class;
|
GObjectClass *object_class;
|
||||||
|
|
||||||
object_class = (GObjectClass *)klass;
|
object_class = (GObjectClass *)klass;
|
||||||
object_class->constructor = gtk_combo_box_text_constructor;
|
object_class->constructed = gtk_combo_box_text_constructed;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -90,9 +90,7 @@ enum {
|
|||||||
G_DEFINE_TYPE_WITH_PRIVATE (GtkCustomPaperUnixDialog, gtk_custom_paper_unix_dialog, GTK_TYPE_DIALOG)
|
G_DEFINE_TYPE_WITH_PRIVATE (GtkCustomPaperUnixDialog, gtk_custom_paper_unix_dialog, GTK_TYPE_DIALOG)
|
||||||
|
|
||||||
|
|
||||||
static GObject *gtk_custom_paper_unix_dialog_constructor (GType type,
|
static void gtk_custom_paper_unix_dialog_constructed (GObject *object);
|
||||||
guint n_params,
|
|
||||||
GObjectConstructParam *params);
|
|
||||||
static void gtk_custom_paper_unix_dialog_finalize (GObject *object);
|
static void gtk_custom_paper_unix_dialog_finalize (GObject *object);
|
||||||
static void populate_dialog (GtkCustomPaperUnixDialog *dialog);
|
static void populate_dialog (GtkCustomPaperUnixDialog *dialog);
|
||||||
static void printer_added_cb (GtkPrintBackend *backend,
|
static void printer_added_cb (GtkPrintBackend *backend,
|
||||||
@ -273,7 +271,7 @@ _gtk_print_save_custom_papers (GtkListStore *store)
|
|||||||
static void
|
static void
|
||||||
gtk_custom_paper_unix_dialog_class_init (GtkCustomPaperUnixDialogClass *class)
|
gtk_custom_paper_unix_dialog_class_init (GtkCustomPaperUnixDialogClass *class)
|
||||||
{
|
{
|
||||||
G_OBJECT_CLASS (class)->constructor = gtk_custom_paper_unix_dialog_constructor;
|
G_OBJECT_CLASS (class)->constructed = gtk_custom_paper_unix_dialog_constructed;
|
||||||
G_OBJECT_CLASS (class)->finalize = gtk_custom_paper_unix_dialog_finalize;
|
G_OBJECT_CLASS (class)->finalize = gtk_custom_paper_unix_dialog_finalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -317,15 +315,12 @@ gtk_custom_paper_unix_dialog_init (GtkCustomPaperUnixDialog *dialog)
|
|||||||
g_signal_connect (dialog, "response", G_CALLBACK (custom_paper_dialog_response_cb), NULL);
|
g_signal_connect (dialog, "response", G_CALLBACK (custom_paper_dialog_response_cb), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_custom_paper_unix_dialog_constructor (GType type,
|
gtk_custom_paper_unix_dialog_constructed (GObject *object)
|
||||||
guint n_params,
|
|
||||||
GObjectConstructParam *params)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
|
||||||
gboolean use_header;
|
gboolean use_header;
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_custom_paper_unix_dialog_parent_class)->constructor (type, n_params, params);
|
G_OBJECT_CLASS (gtk_custom_paper_unix_dialog_parent_class)->constructed (object);
|
||||||
|
|
||||||
g_object_get (object, "use-header-bar", &use_header, NULL);
|
g_object_get (object, "use-header-bar", &use_header, NULL);
|
||||||
if (!use_header)
|
if (!use_header)
|
||||||
@ -335,8 +330,6 @@ gtk_custom_paper_unix_dialog_constructor (GType type,
|
|||||||
NULL);
|
NULL);
|
||||||
gtk_dialog_set_default_response (GTK_DIALOG (object), GTK_RESPONSE_CLOSE);
|
gtk_dialog_set_default_response (GTK_DIALOG (object), GTK_RESPONSE_CLOSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -522,21 +522,13 @@ add_action_widgets (GtkDialog *dialog)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_dialog_constructor (GType type,
|
gtk_dialog_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
GtkDialog *dialog = GTK_DIALOG (object);
|
||||||
GtkDialog *dialog;
|
GtkDialogPrivate *priv = dialog->priv;
|
||||||
GtkDialogPrivate *priv;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_dialog_parent_class)->constructor (type,
|
G_OBJECT_CLASS (gtk_dialog_parent_class)->constructed (object);
|
||||||
n_construct_properties,
|
|
||||||
construct_params);
|
|
||||||
|
|
||||||
dialog = GTK_DIALOG (object);
|
|
||||||
priv = dialog->priv;
|
|
||||||
|
|
||||||
priv->constructed = TRUE;
|
priv->constructed = TRUE;
|
||||||
if (priv->use_header_bar == -1)
|
if (priv->use_header_bar == -1)
|
||||||
@ -544,8 +536,6 @@ gtk_dialog_constructor (GType type,
|
|||||||
|
|
||||||
add_action_widgets (dialog);
|
add_action_widgets (dialog);
|
||||||
apply_use_header_bar (dialog);
|
apply_use_header_bar (dialog);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -568,7 +558,7 @@ gtk_dialog_class_init (GtkDialogClass *class)
|
|||||||
gobject_class = G_OBJECT_CLASS (class);
|
gobject_class = G_OBJECT_CLASS (class);
|
||||||
widget_class = GTK_WIDGET_CLASS (class);
|
widget_class = GTK_WIDGET_CLASS (class);
|
||||||
|
|
||||||
gobject_class->constructor = gtk_dialog_constructor;
|
gobject_class->constructed = gtk_dialog_constructed;
|
||||||
gobject_class->set_property = gtk_dialog_set_property;
|
gobject_class->set_property = gtk_dialog_set_property;
|
||||||
gobject_class->get_property = gtk_dialog_get_property;
|
gobject_class->get_property = gtk_dialog_get_property;
|
||||||
gobject_class->finalize = gtk_dialog_finalize;
|
gobject_class->finalize = gtk_dialog_finalize;
|
||||||
|
@ -120,9 +120,7 @@ enum
|
|||||||
static void gtk_entry_completion_cell_layout_init (GtkCellLayoutIface *iface);
|
static void gtk_entry_completion_cell_layout_init (GtkCellLayoutIface *iface);
|
||||||
static GtkCellArea* gtk_entry_completion_get_area (GtkCellLayout *cell_layout);
|
static GtkCellArea* gtk_entry_completion_get_area (GtkCellLayout *cell_layout);
|
||||||
|
|
||||||
static GObject *gtk_entry_completion_constructor (GType type,
|
static void gtk_entry_completion_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_properties);
|
|
||||||
static void gtk_entry_completion_set_property (GObject *object,
|
static void gtk_entry_completion_set_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
const GValue *value,
|
const GValue *value,
|
||||||
@ -204,7 +202,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
|
|||||||
|
|
||||||
object_class = (GObjectClass *)klass;
|
object_class = (GObjectClass *)klass;
|
||||||
|
|
||||||
object_class->constructor = gtk_entry_completion_constructor;
|
object_class->constructed = gtk_entry_completion_constructed;
|
||||||
object_class->set_property = gtk_entry_completion_set_property;
|
object_class->set_property = gtk_entry_completion_set_property;
|
||||||
object_class->get_property = gtk_entry_completion_get_property;
|
object_class->get_property = gtk_entry_completion_get_property;
|
||||||
object_class->dispose = gtk_entry_completion_dispose;
|
object_class->dispose = gtk_entry_completion_dispose;
|
||||||
@ -503,23 +501,16 @@ gtk_entry_completion_init (GtkEntryCompletion *completion)
|
|||||||
priv->filter_model = NULL;
|
priv->filter_model = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_entry_completion_constructor (GType type,
|
gtk_entry_completion_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_properties)
|
|
||||||
{
|
{
|
||||||
GtkEntryCompletion *completion;
|
GtkEntryCompletion *completion = GTK_ENTRY_COMPLETION (object);
|
||||||
GtkEntryCompletionPrivate *priv;
|
GtkEntryCompletionPrivate *priv = completion->priv;
|
||||||
GObject *object;
|
|
||||||
GtkCellRenderer *cell;
|
GtkCellRenderer *cell;
|
||||||
GtkTreeSelection *sel;
|
GtkTreeSelection *sel;
|
||||||
GtkWidget *popup_frame;
|
GtkWidget *popup_frame;
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_entry_completion_parent_class)->constructor
|
G_OBJECT_CLASS (gtk_entry_completion_parent_class)->constructed (object);
|
||||||
(type, n_construct_properties, construct_properties);
|
|
||||||
|
|
||||||
completion = (GtkEntryCompletion *) object;
|
|
||||||
priv = completion->priv;
|
|
||||||
|
|
||||||
if (!priv->cell_area)
|
if (!priv->cell_area)
|
||||||
{
|
{
|
||||||
@ -626,8 +617,6 @@ gtk_entry_completion_constructor (GType type,
|
|||||||
* been inserted, so we pack the action treeview after the first
|
* been inserted, so we pack the action treeview after the first
|
||||||
* action has been added
|
* action has been added
|
||||||
*/
|
*/
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -247,9 +247,7 @@ static gboolean gtk_file_chooser_button_remove_shortcut_folder (GtkFileChooser
|
|||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
/* GObject Functions */
|
/* GObject Functions */
|
||||||
static GObject *gtk_file_chooser_button_constructor (GType type,
|
static void gtk_file_chooser_button_constructed (GObject *object);
|
||||||
guint n_params,
|
|
||||||
GObjectConstructParam *params);
|
|
||||||
static void gtk_file_chooser_button_set_property (GObject *object,
|
static void gtk_file_chooser_button_set_property (GObject *object,
|
||||||
guint param_id,
|
guint param_id,
|
||||||
const GValue *value,
|
const GValue *value,
|
||||||
@ -369,7 +367,7 @@ gtk_file_chooser_button_class_init (GtkFileChooserButtonClass * class)
|
|||||||
gobject_class = G_OBJECT_CLASS (class);
|
gobject_class = G_OBJECT_CLASS (class);
|
||||||
widget_class = GTK_WIDGET_CLASS (class);
|
widget_class = GTK_WIDGET_CLASS (class);
|
||||||
|
|
||||||
gobject_class->constructor = gtk_file_chooser_button_constructor;
|
gobject_class->constructed = gtk_file_chooser_button_constructed;
|
||||||
gobject_class->set_property = gtk_file_chooser_button_set_property;
|
gobject_class->set_property = gtk_file_chooser_button_set_property;
|
||||||
gobject_class->get_property = gtk_file_chooser_button_get_property;
|
gobject_class->get_property = gtk_file_chooser_button_get_property;
|
||||||
gobject_class->finalize = gtk_file_chooser_button_finalize;
|
gobject_class->finalize = gtk_file_chooser_button_finalize;
|
||||||
@ -780,21 +778,14 @@ gtk_file_chooser_button_remove_shortcut_folder (GtkFileChooser *chooser,
|
|||||||
* GObject Functions *
|
* GObject Functions *
|
||||||
* ******************* */
|
* ******************* */
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_file_chooser_button_constructor (GType type,
|
gtk_file_chooser_button_constructed (GObject *object)
|
||||||
guint n_params,
|
|
||||||
GObjectConstructParam *params)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
GtkFileChooserButton *button = GTK_FILE_CHOOSER_BUTTON (object);
|
||||||
GtkFileChooserButton *button;
|
GtkFileChooserButtonPrivate *priv = button->priv;
|
||||||
GtkFileChooserButtonPrivate *priv;
|
|
||||||
GSList *list;
|
GSList *list;
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_file_chooser_button_parent_class)->constructor (type,
|
G_OBJECT_CLASS (gtk_file_chooser_button_parent_class)->constructed (object);
|
||||||
n_params,
|
|
||||||
params);
|
|
||||||
button = GTK_FILE_CHOOSER_BUTTON (object);
|
|
||||||
priv = button->priv;
|
|
||||||
|
|
||||||
if (!priv->dialog)
|
if (!priv->dialog)
|
||||||
{
|
{
|
||||||
@ -877,8 +868,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
|||||||
|
|
||||||
update_label_and_image (button);
|
update_label_and_image (button);
|
||||||
update_combo_box (button);
|
update_combo_box (button);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -400,9 +400,7 @@ enum {
|
|||||||
static void gtk_file_chooser_widget_iface_init (GtkFileChooserIface *iface);
|
static void gtk_file_chooser_widget_iface_init (GtkFileChooserIface *iface);
|
||||||
static void gtk_file_chooser_embed_default_iface_init (GtkFileChooserEmbedIface *iface);
|
static void gtk_file_chooser_embed_default_iface_init (GtkFileChooserEmbedIface *iface);
|
||||||
|
|
||||||
static GObject* gtk_file_chooser_widget_constructor (GType type,
|
static void gtk_file_chooser_widget_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params);
|
|
||||||
static void gtk_file_chooser_widget_finalize (GObject *object);
|
static void gtk_file_chooser_widget_finalize (GObject *object);
|
||||||
static void gtk_file_chooser_widget_set_property (GObject *object,
|
static void gtk_file_chooser_widget_set_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
@ -2159,30 +2157,21 @@ location_toggle_popup_handler (GtkFileChooserWidget *impl)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject*
|
static void
|
||||||
gtk_file_chooser_widget_constructor (GType type,
|
gtk_file_chooser_widget_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params)
|
|
||||||
{
|
{
|
||||||
GtkFileChooserWidget *impl;
|
GtkFileChooserWidget *impl = GTK_FILE_CHOOSER_WIDGET (object);
|
||||||
GtkFileChooserWidgetPrivate *priv;
|
GtkFileChooserWidgetPrivate *priv = impl->priv;
|
||||||
GObject *object;
|
|
||||||
|
|
||||||
profile_start ("start", NULL);
|
profile_start ("start", NULL);
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_file_chooser_widget_parent_class)->constructor (type,
|
G_OBJECT_CLASS (gtk_file_chooser_widget_parent_class)->constructed (object);
|
||||||
n_construct_properties,
|
|
||||||
construct_params);
|
|
||||||
impl = GTK_FILE_CHOOSER_WIDGET (object);
|
|
||||||
priv = impl->priv;
|
|
||||||
|
|
||||||
g_assert (priv->file_system);
|
g_assert (priv->file_system);
|
||||||
|
|
||||||
update_appearance (impl);
|
update_appearance (impl);
|
||||||
|
|
||||||
profile_end ("end", NULL);
|
profile_end ("end", NULL);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -6972,7 +6961,7 @@ gtk_file_chooser_widget_class_init (GtkFileChooserWidgetClass *class)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
gobject_class->finalize = gtk_file_chooser_widget_finalize;
|
gobject_class->finalize = gtk_file_chooser_widget_finalize;
|
||||||
gobject_class->constructor = gtk_file_chooser_widget_constructor;
|
gobject_class->constructed = gtk_file_chooser_widget_constructed;
|
||||||
gobject_class->set_property = gtk_file_chooser_widget_set_property;
|
gobject_class->set_property = gtk_file_chooser_widget_set_property;
|
||||||
gobject_class->get_property = gtk_file_chooser_widget_get_property;
|
gobject_class->get_property = gtk_file_chooser_widget_get_property;
|
||||||
gobject_class->dispose = gtk_file_chooser_widget_dispose;
|
gobject_class->dispose = gtk_file_chooser_widget_dispose;
|
||||||
|
@ -117,9 +117,7 @@ enum
|
|||||||
/* GObject vfuncs */
|
/* GObject vfuncs */
|
||||||
static void gtk_icon_view_cell_layout_init (GtkCellLayoutIface *iface);
|
static void gtk_icon_view_cell_layout_init (GtkCellLayoutIface *iface);
|
||||||
static void gtk_icon_view_dispose (GObject *object);
|
static void gtk_icon_view_dispose (GObject *object);
|
||||||
static GObject *gtk_icon_view_constructor (GType type,
|
static void gtk_icon_view_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_properties);
|
|
||||||
static void gtk_icon_view_set_property (GObject *object,
|
static void gtk_icon_view_set_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
const GValue *value,
|
const GValue *value,
|
||||||
@ -342,7 +340,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
|||||||
widget_class = (GtkWidgetClass *) klass;
|
widget_class = (GtkWidgetClass *) klass;
|
||||||
container_class = (GtkContainerClass *) klass;
|
container_class = (GtkContainerClass *) klass;
|
||||||
|
|
||||||
gobject_class->constructor = gtk_icon_view_constructor;
|
gobject_class->constructed = gtk_icon_view_constructed;
|
||||||
gobject_class->dispose = gtk_icon_view_dispose;
|
gobject_class->dispose = gtk_icon_view_dispose;
|
||||||
gobject_class->set_property = gtk_icon_view_set_property;
|
gobject_class->set_property = gtk_icon_view_set_property;
|
||||||
gobject_class->get_property = gtk_icon_view_get_property;
|
gobject_class->get_property = gtk_icon_view_get_property;
|
||||||
@ -992,22 +990,15 @@ gtk_icon_view_init (GtkIconView *icon_view)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* GObject methods */
|
/* GObject methods */
|
||||||
static GObject *
|
|
||||||
gtk_icon_view_constructor (GType type,
|
static void
|
||||||
guint n_construct_properties,
|
gtk_icon_view_constructed (GObject *object)
|
||||||
GObjectConstructParam *construct_properties)
|
|
||||||
{
|
{
|
||||||
GtkIconView *icon_view;
|
GtkIconView *icon_view = GTK_ICON_VIEW (object);
|
||||||
GObject *object;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_icon_view_parent_class)->constructor
|
G_OBJECT_CLASS (gtk_icon_view_parent_class)->constructed (object);
|
||||||
(type, n_construct_properties, construct_properties);
|
|
||||||
|
|
||||||
icon_view = (GtkIconView *) object;
|
|
||||||
|
|
||||||
gtk_icon_view_ensure_cell_area (icon_view, NULL);
|
gtk_icon_view_ensure_cell_area (icon_view, NULL);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -69,10 +69,7 @@ static void gtk_invisible_get_property (GObject *object,
|
|||||||
guint prop_id,
|
guint prop_id,
|
||||||
GValue *value,
|
GValue *value,
|
||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
|
static void gtk_invisible_constructed (GObject *object);
|
||||||
static GObject *gtk_invisible_constructor (GType type,
|
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params);
|
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_PRIVATE (GtkInvisible, gtk_invisible, GTK_TYPE_WIDGET)
|
G_DEFINE_TYPE_WITH_PRIVATE (GtkInvisible, gtk_invisible, GTK_TYPE_WIDGET)
|
||||||
|
|
||||||
@ -93,7 +90,7 @@ gtk_invisible_class_init (GtkInvisibleClass *class)
|
|||||||
|
|
||||||
gobject_class->set_property = gtk_invisible_set_property;
|
gobject_class->set_property = gtk_invisible_set_property;
|
||||||
gobject_class->get_property = gtk_invisible_get_property;
|
gobject_class->get_property = gtk_invisible_get_property;
|
||||||
gobject_class->constructor = gtk_invisible_constructor;
|
gobject_class->constructed = gtk_invisible_constructed;
|
||||||
|
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_SCREEN,
|
PROP_SCREEN,
|
||||||
@ -322,18 +319,10 @@ gtk_invisible_get_property (GObject *object,
|
|||||||
/* We use a constructor here so that we can realize the invisible on
|
/* We use a constructor here so that we can realize the invisible on
|
||||||
* the correct screen after the “screen” property has been set
|
* the correct screen after the “screen” property has been set
|
||||||
*/
|
*/
|
||||||
static GObject*
|
static void
|
||||||
gtk_invisible_constructor (GType type,
|
gtk_invisible_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
G_OBJECT_CLASS (gtk_invisible_parent_class)->constructed (object);
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_invisible_parent_class)->constructor (type,
|
|
||||||
n_construct_properties,
|
|
||||||
construct_params);
|
|
||||||
|
|
||||||
gtk_widget_realize (GTK_WIDGET (object));
|
gtk_widget_realize (GTK_WIDGET (object));
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
@ -95,9 +95,7 @@ static void gtk_print_job_get_property (GObject *object,
|
|||||||
guint prop_id,
|
guint prop_id,
|
||||||
GValue *value,
|
GValue *value,
|
||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
static GObject* gtk_print_job_constructor (GType type,
|
static void gtk_print_job_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params);
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
STATUS_CHANGED,
|
STATUS_CHANGED,
|
||||||
@ -124,7 +122,7 @@ gtk_print_job_class_init (GtkPrintJobClass *class)
|
|||||||
object_class = (GObjectClass *) class;
|
object_class = (GObjectClass *) class;
|
||||||
|
|
||||||
object_class->finalize = gtk_print_job_finalize;
|
object_class->finalize = gtk_print_job_finalize;
|
||||||
object_class->constructor = gtk_print_job_constructor;
|
object_class->constructed = gtk_print_job_constructed;
|
||||||
object_class->set_property = gtk_print_job_set_property;
|
object_class->set_property = gtk_print_job_set_property;
|
||||||
object_class->get_property = gtk_print_job_get_property;
|
object_class->get_property = gtk_print_job_get_property;
|
||||||
|
|
||||||
@ -228,23 +226,14 @@ gtk_print_job_init (GtkPrintJob *job)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static GObject*
|
static void
|
||||||
gtk_print_job_constructor (GType type,
|
gtk_print_job_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params)
|
|
||||||
{
|
{
|
||||||
GtkPrintJob *job;
|
GtkPrintJob *job = GTK_PRINT_JOB (object);
|
||||||
GtkPrintJobPrivate *priv;
|
GtkPrintJobPrivate *priv = job->priv;
|
||||||
GObject *object;
|
|
||||||
|
|
||||||
object =
|
G_OBJECT_CLASS (gtk_print_job_parent_class)->constructed (object);
|
||||||
G_OBJECT_CLASS (gtk_print_job_parent_class)->constructor (type,
|
|
||||||
n_construct_properties,
|
|
||||||
construct_params);
|
|
||||||
|
|
||||||
job = GTK_PRINT_JOB (object);
|
|
||||||
|
|
||||||
priv = job->priv;
|
|
||||||
g_assert (priv->printer_set &&
|
g_assert (priv->printer_set &&
|
||||||
priv->settings_set &&
|
priv->settings_set &&
|
||||||
priv->page_setup_set);
|
priv->page_setup_set);
|
||||||
@ -253,8 +242,6 @@ gtk_print_job_constructor (GType type,
|
|||||||
job,
|
job,
|
||||||
priv->settings,
|
priv->settings,
|
||||||
priv->page_setup);
|
priv->page_setup);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,9 +118,7 @@
|
|||||||
#define RULER_RADIUS 2
|
#define RULER_RADIUS 2
|
||||||
|
|
||||||
|
|
||||||
static GObject *gtk_print_unix_dialog_constructor (GType type,
|
static void gtk_print_unix_dialog_constructed (GObject *object);
|
||||||
guint n_params,
|
|
||||||
GObjectConstructParam *params);
|
|
||||||
static void gtk_print_unix_dialog_destroy (GtkWidget *widget);
|
static void gtk_print_unix_dialog_destroy (GtkWidget *widget);
|
||||||
static void gtk_print_unix_dialog_finalize (GObject *object);
|
static void gtk_print_unix_dialog_finalize (GObject *object);
|
||||||
static void gtk_print_unix_dialog_set_property (GObject *object,
|
static void gtk_print_unix_dialog_set_property (GObject *object,
|
||||||
@ -394,7 +392,7 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
|
|||||||
object_class = (GObjectClass *) class;
|
object_class = (GObjectClass *) class;
|
||||||
widget_class = (GtkWidgetClass *) class;
|
widget_class = (GtkWidgetClass *) class;
|
||||||
|
|
||||||
object_class->constructor = gtk_print_unix_dialog_constructor;
|
object_class->constructed = gtk_print_unix_dialog_constructed;
|
||||||
object_class->finalize = gtk_print_unix_dialog_finalize;
|
object_class->finalize = gtk_print_unix_dialog_finalize;
|
||||||
object_class->set_property = gtk_print_unix_dialog_set_property;
|
object_class->set_property = gtk_print_unix_dialog_set_property;
|
||||||
object_class->get_property = gtk_print_unix_dialog_get_property;
|
object_class->get_property = gtk_print_unix_dialog_get_property;
|
||||||
@ -792,15 +790,12 @@ gtk_print_unix_dialog_init (GtkPrintUnixDialog *dialog)
|
|||||||
_gtk_print_load_custom_papers (priv->custom_paper_list);
|
_gtk_print_load_custom_papers (priv->custom_paper_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_print_unix_dialog_constructor (GType type,
|
gtk_print_unix_dialog_constructed (GObject *object)
|
||||||
guint n_params,
|
|
||||||
GObjectConstructParam *params)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
|
||||||
gboolean use_header;
|
gboolean use_header;
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_print_unix_dialog_parent_class)->constructor (type, n_params, params);
|
G_OBJECT_CLASS (gtk_print_unix_dialog_parent_class)->constructed (object);
|
||||||
|
|
||||||
g_object_get (object, "use-header-bar", &use_header, NULL);
|
g_object_get (object, "use-header-bar", &use_header, NULL);
|
||||||
if (use_header)
|
if (use_header)
|
||||||
@ -814,8 +809,6 @@ gtk_print_unix_dialog_constructor (GType type,
|
|||||||
gtk_header_bar_pack_end (GTK_HEADER_BAR (parent), button);
|
gtk_header_bar_pack_end (GTK_HEADER_BAR (parent), button);
|
||||||
g_object_unref (button);
|
g_object_unref (button);
|
||||||
}
|
}
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -92,9 +92,7 @@ static void gtk_recent_chooser_dialog_class_init (GtkRecentChooserDialogClass *k
|
|||||||
static void gtk_recent_chooser_dialog_init (GtkRecentChooserDialog *dialog);
|
static void gtk_recent_chooser_dialog_init (GtkRecentChooserDialog *dialog);
|
||||||
static void gtk_recent_chooser_dialog_finalize (GObject *object);
|
static void gtk_recent_chooser_dialog_finalize (GObject *object);
|
||||||
|
|
||||||
static GObject *gtk_recent_chooser_dialog_constructor (GType type,
|
static void gtk_recent_chooser_dialog_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params);
|
|
||||||
|
|
||||||
static void gtk_recent_chooser_dialog_set_property (GObject *object,
|
static void gtk_recent_chooser_dialog_set_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
@ -119,7 +117,7 @@ gtk_recent_chooser_dialog_class_init (GtkRecentChooserDialogClass *klass)
|
|||||||
|
|
||||||
gobject_class->set_property = gtk_recent_chooser_dialog_set_property;
|
gobject_class->set_property = gtk_recent_chooser_dialog_set_property;
|
||||||
gobject_class->get_property = gtk_recent_chooser_dialog_get_property;
|
gobject_class->get_property = gtk_recent_chooser_dialog_get_property;
|
||||||
gobject_class->constructor = gtk_recent_chooser_dialog_constructor;
|
gobject_class->constructed = gtk_recent_chooser_dialog_constructed;
|
||||||
gobject_class->finalize = gtk_recent_chooser_dialog_finalize;
|
gobject_class->finalize = gtk_recent_chooser_dialog_finalize;
|
||||||
|
|
||||||
_gtk_recent_chooser_install_properties (gobject_class);
|
_gtk_recent_chooser_install_properties (gobject_class);
|
||||||
@ -193,20 +191,15 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
|||||||
g_list_free (children);
|
g_list_free (children);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_recent_chooser_dialog_constructor (GType type,
|
gtk_recent_chooser_dialog_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params)
|
|
||||||
{
|
{
|
||||||
GtkRecentChooserDialogPrivate *priv;
|
GtkRecentChooserDialogPrivate *priv;
|
||||||
GtkWidget *content_area;
|
GtkWidget *content_area;
|
||||||
GObject *object;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_recent_chooser_dialog_parent_class)->constructor (type,
|
G_OBJECT_CLASS (gtk_recent_chooser_dialog_parent_class)->constructed (object);
|
||||||
n_construct_properties,
|
|
||||||
construct_params);
|
|
||||||
priv = GTK_RECENT_CHOOSER_DIALOG_GET_PRIVATE (object);
|
priv = GTK_RECENT_CHOOSER_DIALOG_GET_PRIVATE (object);
|
||||||
|
|
||||||
if (priv->manager)
|
if (priv->manager)
|
||||||
priv->chooser = g_object_new (GTK_TYPE_RECENT_CHOOSER_WIDGET,
|
priv->chooser = g_object_new (GTK_TYPE_RECENT_CHOOSER_WIDGET,
|
||||||
"recent-manager", priv->manager,
|
"recent-manager", priv->manager,
|
||||||
@ -227,8 +220,6 @@ gtk_recent_chooser_dialog_constructor (GType type,
|
|||||||
|
|
||||||
_gtk_recent_chooser_set_delegate (GTK_RECENT_CHOOSER (object),
|
_gtk_recent_chooser_set_delegate (GTK_RECENT_CHOOSER (object),
|
||||||
GTK_RECENT_CHOOSER (priv->chooser));
|
GTK_RECENT_CHOOSER (priv->chooser));
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -120,9 +120,7 @@ enum {
|
|||||||
|
|
||||||
static void gtk_recent_chooser_menu_finalize (GObject *object);
|
static void gtk_recent_chooser_menu_finalize (GObject *object);
|
||||||
static void gtk_recent_chooser_menu_dispose (GObject *object);
|
static void gtk_recent_chooser_menu_dispose (GObject *object);
|
||||||
static GObject *gtk_recent_chooser_menu_constructor (GType type,
|
static void gtk_recent_chooser_menu_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params);
|
|
||||||
|
|
||||||
static void gtk_recent_chooser_iface_init (GtkRecentChooserIface *iface);
|
static void gtk_recent_chooser_iface_init (GtkRecentChooserIface *iface);
|
||||||
|
|
||||||
@ -219,7 +217,7 @@ gtk_recent_chooser_menu_class_init (GtkRecentChooserMenuClass *klass)
|
|||||||
{
|
{
|
||||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||||
|
|
||||||
gobject_class->constructor = gtk_recent_chooser_menu_constructor;
|
gobject_class->constructed = gtk_recent_chooser_menu_constructed;
|
||||||
gobject_class->dispose = gtk_recent_chooser_menu_dispose;
|
gobject_class->dispose = gtk_recent_chooser_menu_dispose;
|
||||||
gobject_class->finalize = gtk_recent_chooser_menu_finalize;
|
gobject_class->finalize = gtk_recent_chooser_menu_finalize;
|
||||||
gobject_class->set_property = gtk_recent_chooser_menu_set_property;
|
gobject_class->set_property = gtk_recent_chooser_menu_set_property;
|
||||||
@ -322,20 +320,13 @@ gtk_recent_chooser_menu_dispose (GObject *object)
|
|||||||
G_OBJECT_CLASS (gtk_recent_chooser_menu_parent_class)->dispose (object);
|
G_OBJECT_CLASS (gtk_recent_chooser_menu_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_recent_chooser_menu_constructor (GType type,
|
gtk_recent_chooser_menu_constructed (GObject *object)
|
||||||
guint n_params,
|
|
||||||
GObjectConstructParam *params)
|
|
||||||
{
|
{
|
||||||
GtkRecentChooserMenu *menu;
|
GtkRecentChooserMenu *menu = GTK_RECENT_CHOOSER_MENU (object);
|
||||||
GtkRecentChooserMenuPrivate *priv;
|
GtkRecentChooserMenuPrivate *priv = menu->priv;
|
||||||
GObjectClass *parent_class;
|
|
||||||
GObject *object;
|
G_OBJECT_CLASS (gtk_recent_chooser_menu_parent_class)->constructed (object);
|
||||||
|
|
||||||
parent_class = G_OBJECT_CLASS (gtk_recent_chooser_menu_parent_class);
|
|
||||||
object = parent_class->constructor (type, n_params, params);
|
|
||||||
menu = GTK_RECENT_CHOOSER_MENU (object);
|
|
||||||
priv = menu->priv;
|
|
||||||
|
|
||||||
g_assert (priv->manager);
|
g_assert (priv->manager);
|
||||||
|
|
||||||
@ -361,8 +352,6 @@ gtk_recent_chooser_menu_constructor (GType type,
|
|||||||
|
|
||||||
/* (re)populate the menu */
|
/* (re)populate the menu */
|
||||||
gtk_recent_chooser_menu_populate (menu);
|
gtk_recent_chooser_menu_populate (menu);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -113,9 +113,7 @@ struct _GtkScaleButtonPrivate
|
|||||||
GtkAdjustment *adjustment; /* needed because it must be settable in init() */
|
GtkAdjustment *adjustment; /* needed because it must be settable in init() */
|
||||||
};
|
};
|
||||||
|
|
||||||
static GObject* gtk_scale_button_constructor (GType type,
|
static void gtk_scale_button_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params);
|
|
||||||
static void gtk_scale_button_dispose (GObject *object);
|
static void gtk_scale_button_dispose (GObject *object);
|
||||||
static void gtk_scale_button_finalize (GObject *object);
|
static void gtk_scale_button_finalize (GObject *object);
|
||||||
static void gtk_scale_button_set_property (GObject *object,
|
static void gtk_scale_button_set_property (GObject *object,
|
||||||
@ -162,7 +160,7 @@ gtk_scale_button_class_init (GtkScaleButtonClass *klass)
|
|||||||
GtkButtonClass *button_class = GTK_BUTTON_CLASS (klass);
|
GtkButtonClass *button_class = GTK_BUTTON_CLASS (klass);
|
||||||
GtkBindingSet *binding_set;
|
GtkBindingSet *binding_set;
|
||||||
|
|
||||||
gobject_class->constructor = gtk_scale_button_constructor;
|
gobject_class->constructed = gtk_scale_button_constructed;
|
||||||
gobject_class->finalize = gtk_scale_button_finalize;
|
gobject_class->finalize = gtk_scale_button_finalize;
|
||||||
gobject_class->dispose = gtk_scale_button_dispose;
|
gobject_class->dispose = gtk_scale_button_dispose;
|
||||||
gobject_class->set_property = gtk_scale_button_set_property;
|
gobject_class->set_property = gtk_scale_button_set_property;
|
||||||
@ -362,26 +360,17 @@ gtk_scale_button_init (GtkScaleButton *button)
|
|||||||
gtk_widget_add_events (GTK_WIDGET (button), GDK_SCROLL_MASK);
|
gtk_widget_add_events (GTK_WIDGET (button), GDK_SCROLL_MASK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_scale_button_constructor (GType type,
|
gtk_scale_button_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
GtkScaleButton *button = GTK_SCALE_BUTTON (object);
|
||||||
GtkScaleButton *button;
|
GtkScaleButtonPrivate *priv = button->priv;
|
||||||
GtkScaleButtonPrivate *priv;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_scale_button_parent_class)->constructor (type, n_construct_properties, construct_params);
|
G_OBJECT_CLASS (gtk_scale_button_parent_class)->constructed (object);
|
||||||
|
|
||||||
button = GTK_SCALE_BUTTON (object);
|
|
||||||
|
|
||||||
priv = button->priv;
|
|
||||||
|
|
||||||
/* set button text and size */
|
/* set button text and size */
|
||||||
priv->size = GTK_ICON_SIZE_SMALL_TOOLBAR;
|
priv->size = GTK_ICON_SIZE_SMALL_TOOLBAR;
|
||||||
gtk_scale_button_update_icon (button);
|
gtk_scale_button_update_icon (button);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -154,9 +154,7 @@ struct _GtkStatusIconPrivate
|
|||||||
guint visible : 1;
|
guint visible : 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
static GObject* gtk_status_icon_constructor (GType type,
|
static void gtk_status_icon_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params);
|
|
||||||
static void gtk_status_icon_finalize (GObject *object);
|
static void gtk_status_icon_finalize (GObject *object);
|
||||||
static void gtk_status_icon_set_property (GObject *object,
|
static void gtk_status_icon_set_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
@ -206,7 +204,7 @@ gtk_status_icon_class_init (GtkStatusIconClass *class)
|
|||||||
{
|
{
|
||||||
GObjectClass *gobject_class = (GObjectClass *) class;
|
GObjectClass *gobject_class = (GObjectClass *) class;
|
||||||
|
|
||||||
gobject_class->constructor = gtk_status_icon_constructor;
|
gobject_class->constructed = gtk_status_icon_constructed;
|
||||||
gobject_class->finalize = gtk_status_icon_finalize;
|
gobject_class->finalize = gtk_status_icon_finalize;
|
||||||
gobject_class->set_property = gtk_status_icon_set_property;
|
gobject_class->set_property = gtk_status_icon_set_property;
|
||||||
gobject_class->get_property = gtk_status_icon_get_property;
|
gobject_class->get_property = gtk_status_icon_get_property;
|
||||||
@ -959,30 +957,20 @@ gtk_status_icon_init (GtkStatusIcon *status_icon)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject*
|
static void
|
||||||
gtk_status_icon_constructor (GType type,
|
gtk_status_icon_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_params)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
G_OBJECT_CLASS (gtk_status_icon_parent_class)->constructed (object);
|
||||||
#ifdef GDK_WINDOWING_X11
|
|
||||||
GtkStatusIcon *status_icon;
|
|
||||||
GtkStatusIconPrivate *priv;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_status_icon_parent_class)->constructor (type,
|
|
||||||
n_construct_properties,
|
|
||||||
construct_params);
|
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
status_icon = GTK_STATUS_ICON (object);
|
{
|
||||||
priv = status_icon->priv;
|
GtkStatusIcon *status_icon = GTK_STATUS_ICON (object);
|
||||||
|
GtkStatusIconPrivate *priv = status_icon->priv;
|
||||||
|
|
||||||
if (priv->visible && priv->tray_icon)
|
if (priv->visible && priv->tray_icon)
|
||||||
gtk_widget_show (priv->tray_icon);
|
gtk_widget_show (priv->tray_icon);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -52,9 +52,7 @@
|
|||||||
#include "deprecated/gtktearoffmenuitem.h"
|
#include "deprecated/gtktearoffmenuitem.h"
|
||||||
|
|
||||||
/* GObjectClass */
|
/* GObjectClass */
|
||||||
static GObject *gtk_tree_menu_constructor (GType type,
|
static void gtk_tree_menu_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_properties);
|
|
||||||
static void gtk_tree_menu_dispose (GObject *object);
|
static void gtk_tree_menu_dispose (GObject *object);
|
||||||
static void gtk_tree_menu_finalize (GObject *object);
|
static void gtk_tree_menu_finalize (GObject *object);
|
||||||
static void gtk_tree_menu_set_property (GObject *object,
|
static void gtk_tree_menu_set_property (GObject *object,
|
||||||
@ -227,7 +225,7 @@ _gtk_tree_menu_class_init (GtkTreeMenuClass *class)
|
|||||||
|
|
||||||
tree_menu_path_quark = g_quark_from_static_string ("gtk-tree-menu-path");
|
tree_menu_path_quark = g_quark_from_static_string ("gtk-tree-menu-path");
|
||||||
|
|
||||||
object_class->constructor = gtk_tree_menu_constructor;
|
object_class->constructed = gtk_tree_menu_constructed;
|
||||||
object_class->dispose = gtk_tree_menu_dispose;
|
object_class->dispose = gtk_tree_menu_dispose;
|
||||||
object_class->finalize = gtk_tree_menu_finalize;
|
object_class->finalize = gtk_tree_menu_finalize;
|
||||||
object_class->set_property = gtk_tree_menu_set_property;
|
object_class->set_property = gtk_tree_menu_set_property;
|
||||||
@ -397,20 +395,13 @@ _gtk_tree_menu_class_init (GtkTreeMenuClass *class)
|
|||||||
/****************************************************************
|
/****************************************************************
|
||||||
* GObjectClass *
|
* GObjectClass *
|
||||||
****************************************************************/
|
****************************************************************/
|
||||||
static GObject *
|
static void
|
||||||
gtk_tree_menu_constructor (GType type,
|
gtk_tree_menu_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_properties)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
GtkTreeMenu *menu = GTK_TREE_MENU (object);
|
||||||
GtkTreeMenu *menu;
|
GtkTreeMenuPrivate *priv = menu->priv;
|
||||||
GtkTreeMenuPrivate *priv;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (_gtk_tree_menu_parent_class)->constructor
|
G_OBJECT_CLASS (_gtk_tree_menu_parent_class)->constructed (object);
|
||||||
(type, n_construct_properties, construct_properties);
|
|
||||||
|
|
||||||
menu = GTK_TREE_MENU (object);
|
|
||||||
priv = menu->priv;
|
|
||||||
|
|
||||||
if (!priv->area)
|
if (!priv->area)
|
||||||
{
|
{
|
||||||
@ -424,8 +415,6 @@ gtk_tree_menu_constructor (GType type,
|
|||||||
priv->size_changed_id =
|
priv->size_changed_id =
|
||||||
g_signal_connect (priv->context, "notify",
|
g_signal_connect (priv->context, "notify",
|
||||||
G_CALLBACK (context_size_changed_cb), menu);
|
G_CALLBACK (context_size_changed_cb), menu);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -71,9 +71,7 @@ static void gtk_tree_view_column_get_property (GObject
|
|||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
static void gtk_tree_view_column_finalize (GObject *object);
|
static void gtk_tree_view_column_finalize (GObject *object);
|
||||||
static void gtk_tree_view_column_dispose (GObject *object);
|
static void gtk_tree_view_column_dispose (GObject *object);
|
||||||
static GObject *gtk_tree_view_column_constructor (GType type,
|
static void gtk_tree_view_column_constructed (GObject *object);
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_properties);
|
|
||||||
|
|
||||||
/* GtkCellLayout implementation */
|
/* GtkCellLayout implementation */
|
||||||
static void gtk_tree_view_column_ensure_cell_area (GtkTreeViewColumn *column,
|
static void gtk_tree_view_column_ensure_cell_area (GtkTreeViewColumn *column,
|
||||||
@ -226,7 +224,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
|
|||||||
|
|
||||||
class->clicked = NULL;
|
class->clicked = NULL;
|
||||||
|
|
||||||
object_class->constructor = gtk_tree_view_column_constructor;
|
object_class->constructed = gtk_tree_view_column_constructed;
|
||||||
object_class->finalize = gtk_tree_view_column_finalize;
|
object_class->finalize = gtk_tree_view_column_finalize;
|
||||||
object_class->dispose = gtk_tree_view_column_dispose;
|
object_class->dispose = gtk_tree_view_column_dispose;
|
||||||
object_class->set_property = gtk_tree_view_column_set_property;
|
object_class->set_property = gtk_tree_view_column_set_property;
|
||||||
@ -476,22 +474,14 @@ gtk_tree_view_column_init (GtkTreeViewColumn *tree_column)
|
|||||||
priv->title = g_strdup ("");
|
priv->title = g_strdup ("");
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_tree_view_column_constructor (GType type,
|
gtk_tree_view_column_constructed (GObject *object)
|
||||||
guint n_construct_properties,
|
|
||||||
GObjectConstructParam *construct_properties)
|
|
||||||
{
|
{
|
||||||
GtkTreeViewColumn *tree_column;
|
GtkTreeViewColumn *tree_column = GTK_TREE_VIEW_COLUMN (object);
|
||||||
GObject *object;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_tree_view_column_parent_class)->constructor
|
G_OBJECT_CLASS (gtk_tree_view_column_parent_class)->constructed (object);
|
||||||
(type, n_construct_properties, construct_properties);
|
|
||||||
|
|
||||||
tree_column = (GtkTreeViewColumn *) object;
|
|
||||||
|
|
||||||
gtk_tree_view_column_ensure_cell_area (tree_column, NULL);
|
gtk_tree_view_column_ensure_cell_area (tree_column, NULL);
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -372,9 +372,7 @@ struct _GtkWindowGeometryInfo
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static GObject *gtk_window_constructor (GType type,
|
static void gtk_window_constructed (GObject *object);
|
||||||
guint n_params,
|
|
||||||
GObjectConstructParam *params);
|
|
||||||
static void gtk_window_dispose (GObject *object);
|
static void gtk_window_dispose (GObject *object);
|
||||||
static void gtk_window_finalize (GObject *object);
|
static void gtk_window_finalize (GObject *object);
|
||||||
static void gtk_window_destroy (GtkWidget *widget);
|
static void gtk_window_destroy (GtkWidget *widget);
|
||||||
@ -657,7 +655,7 @@ gtk_window_class_init (GtkWindowClass *klass)
|
|||||||
quark_gtk_window_icon_info = g_quark_from_static_string ("gtk-window-icon-info");
|
quark_gtk_window_icon_info = g_quark_from_static_string ("gtk-window-icon-info");
|
||||||
quark_gtk_buildable_accels = g_quark_from_static_string ("gtk-window-buildable-accels");
|
quark_gtk_buildable_accels = g_quark_from_static_string ("gtk-window-buildable-accels");
|
||||||
|
|
||||||
gobject_class->constructor = gtk_window_constructor;
|
gobject_class->constructed = gtk_window_constructed;
|
||||||
gobject_class->dispose = gtk_window_dispose;
|
gobject_class->dispose = gtk_window_dispose;
|
||||||
gobject_class->finalize = gtk_window_finalize;
|
gobject_class->finalize = gtk_window_finalize;
|
||||||
|
|
||||||
@ -1565,17 +1563,14 @@ gtk_window_init (GtkWindow *window)
|
|||||||
priv->scale = gtk_widget_get_scale_factor (widget);
|
priv->scale = gtk_widget_get_scale_factor (widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GObject *
|
static void
|
||||||
gtk_window_constructor (GType type,
|
gtk_window_constructed (GObject *object)
|
||||||
guint n_params,
|
|
||||||
GObjectConstructParam *params)
|
|
||||||
{
|
{
|
||||||
GObject *object;
|
GtkWindow *window = GTK_WINDOW (object);
|
||||||
GtkWindowPrivate *priv;
|
GtkWindowPrivate *priv = window->priv;
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gtk_window_parent_class)->constructor (type, n_params, params);
|
G_OBJECT_CLASS (gtk_window_parent_class)->constructed (object);
|
||||||
|
|
||||||
priv = GTK_WINDOW (object)->priv;
|
|
||||||
if (priv->type == GTK_WINDOW_TOPLEVEL)
|
if (priv->type == GTK_WINDOW_TOPLEVEL)
|
||||||
{
|
{
|
||||||
priv->multipress_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (object));
|
priv->multipress_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (object));
|
||||||
@ -1585,8 +1580,6 @@ gtk_window_constructor (GType type,
|
|||||||
g_signal_connect (priv->multipress_gesture, "stopped",
|
g_signal_connect (priv->multipress_gesture, "stopped",
|
||||||
G_CALLBACK (multipress_gesture_stopped_cb), object);
|
G_CALLBACK (multipress_gesture_stopped_cb), object);
|
||||||
}
|
}
|
||||||
|
|
||||||
return object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user