custom_dialog = gtk_color_selection_dialog_new (_("Custom Color"));
- colorsel = GTK_COLOR_SELECTION_DIALOG (custom_dialog)->colorsel;
+ colorsel = gtk_color_selection_dialog_get_color_selection (GTK_COLOR_SELECTION_DIALOG (custom_dialog));
color.red = GL_COLOR_F_RED (this->priv->color) * 65535;
color.green = GL_COLOR_F_GREEN (this->priv->color) * 65535;
color.blue = GL_COLOR_F_BLUE (this->priv->color) * 65535;
#include "combo-util.h"
+#include <string.h>
+
#include <libglabels/libglabels.h>
static gchar *object_ids[] = { "merge_properties_vbox", NULL };
GError *error = NULL;
GtkWidget *vbox;
+ GtkWidget *merge_properties_vbox;
gl_debug (DEBUG_MERGE, "START");
dialog->priv = g_new0 (glMergePropertiesDialogPrivate, 1);
- gtk_container_set_border_width (GTK_CONTAINER(dialog), GL_HIG_PAD1);
+ vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
+
+ gtk_container_set_border_width (GTK_CONTAINER(dialog), GL_HIG_PAD1);
gtk_dialog_set_has_separator (GTK_DIALOG(dialog), FALSE);
gtk_dialog_add_button (GTK_DIALOG (dialog),
}
gl_builder_util_get_widgets (builder,
- "merge_properties_vbox", &vbox,
+ "merge_properties_vbox", &merge_properties_vbox,
"type_combo", &dialog->priv->type_combo,
"location_vbox", &dialog->priv->location_vbox,
"treeview", &dialog->priv->treeview,
"unselect_all_button", &dialog->priv->unselect_all_button,
NULL);
- gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), vbox);
+ gtk_container_add (GTK_CONTAINER (vbox), merge_properties_vbox);
dialog->priv->builder = builder;
gl_combo_util_add_text_model (GTK_COMBO_BOX (dialog->priv->type_combo));
static void
gl_new_label_dialog_init (glNewLabelDialog *dialog)
{
- GtkWidget *label;
+ GtkWidget *vbox;
+ GtkWidget *label;
GtkWidget *frame;
gchar *name;
gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+ vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
label = gtk_label_new (_("<b>Media type</b>"));
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
frame = gtk_frame_new ("");
gtk_frame_set_label_widget (GTK_FRAME (frame), label);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE);
- gtk_box_pack_start (GTK_BOX( GTK_DIALOG (dialog)->vbox), frame, FALSE, FALSE, GL_HIG_PAD1);
+ gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, GL_HIG_PAD1);
dialog->priv->media_select = gl_wdgt_media_select_new ();
gtk_container_add (GTK_CONTAINER (frame), dialog->priv->media_select);
frame = gtk_frame_new ("");
gtk_frame_set_label_widget (GTK_FRAME (frame), label);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE);
- gtk_box_pack_start (GTK_BOX( GTK_DIALOG (dialog)->vbox), frame, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
dialog->priv->rotate_label = gl_rotate_label_button_new ();
gtk_container_add (GTK_CONTAINER (frame), dialog->priv->rotate_label);
static void
gl_prefs_dialog_construct (glPrefsDialog *dialog)
{
+ GtkWidget *vbox;
GtkWidget *notebook;
g_return_if_fail (GL_IS_PREFS_DIALOG (dialog));
g_return_if_fail (dialog->priv != NULL);
+ vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
+
gl_builder_util_get_widgets (dialog->priv->builder,
"prefs_notebook", ¬ebook,
NULL);
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), notebook, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), notebook, FALSE, FALSE, 0);
construct_locale_page (dialog);
construct_object_page (dialog);
update_locale_page_from_prefs (dialog);
update_object_page_from_prefs (dialog);
- gtk_widget_show_all (GTK_DIALOG (dialog)->vbox);
+ gtk_widget_show_all (vbox);
}