gtk_container_set_border_width (GTK_CONTAINER(hig_dialog),
HIG_DIALOG_BORDER);
-#if 0
hig_dialog->vbox = gtk_vbox_new (FALSE, HIG_DIALOG_VBOX_SPACING);
gtk_box_pack_start (GTK_BOX(GTK_DIALOG(hig_dialog)->vbox),
hig_dialog->vbox, FALSE, FALSE, 0);
-#else
- hig_dialog->vbox = GTK_DIALOG(hig_dialog)->vbox;
gtk_box_set_spacing (GTK_BOX(GTK_DIALOG(hig_dialog)->vbox),
HIG_DIALOG_VBOX_SPACING);
-#endif
-
- /* FIXME: Doesn't seem to accomplish anything. */
- gtk_container_set_border_width (GTK_CONTAINER(GTK_DIALOG(hig_dialog)->action_area),
- HIG_DIALOG_ACTION_BORDER);
}
static void
GnomePrintConfig *config;
/* gLabels Template */
- const glTemplate *template;
+ glTemplate *template;
gboolean label_rotate_flag;
} PrintInfo;
GL_PRINT_DEFAULT_PAPER);
}
-#if 1
- /* gnome_print_config_dump (pi->config); */
- {
- GList *p, *list;
- GnomePrintPaper *paper;
- gchar *name;
-
- list = gnome_print_paper_get_list();
- for ( p=list; p != NULL; p=p->next ) {
- paper = (GnomePrintPaper *)p->data;
- gl_debug (DEBUG_PRINT, " \"%s\"", paper->name);
- }
- gl_debug (DEBUG_PRINT,
- "template->page_size = \"%s\"", template->page_size);
-
- name = gnome_print_config_get (pi->config,
- GNOME_PRINT_KEY_PAPER_SIZE);
- gl_debug (DEBUG_PRINT, "config = \"%s\"", name);
- }
-#endif
-
pi->template = template;
pi->label_rotate_flag = gl_label_get_rotate_flag (label);
- gl_template_free (&template);
-
gl_debug (DEBUG_PRINT, "END");
return pi;
{
gl_debug (DEBUG_PRINT, "START");
+ gl_template_free (&(*pi)->template);
+
gnome_print_context_close ((*pi)->pc);
g_free (*pi);
const glTemplateOrigin *a_origin = a, *b_origin = b;
if ( a_origin->y < b_origin->y ) {
- return -1;
- } else if ( a_origin->y > b_origin->y ) {
return +1;
+ } else if ( a_origin->y > b_origin->y ) {
+ return -1;
} else {
if ( a_origin->x < b_origin->x ) {
return -1;
wvbox1 = gtk_vbox_new (FALSE, GL_HIG_SPACING);
gtk_box_pack_start (GTK_BOX (whbox), wvbox1, FALSE, FALSE, 0);
+ whbox1 = gtk_hbox_new (FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (wvbox1), whbox1, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (whbox1),
+ gtk_label_new (""),
+ FALSE, FALSE, 0);
whbox1 = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (wvbox1), whbox1, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (whbox1),
wvbox1 = gtk_vbox_new (FALSE, GL_HIG_SPACING);
gtk_box_pack_start (GTK_BOX (whbox), wvbox1, FALSE, FALSE, 0);
+ whbox1 = gtk_hbox_new (FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (wvbox1), whbox1, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (whbox1),
+ gtk_label_new (""),
+ FALSE, FALSE, 0);
whbox1 = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (wvbox1), whbox1, FALSE, FALSE, 0);
media_select->desc_label = gtk_label_new ("");
break;
}
g_object_set_data (G_OBJECT (item), "i",
- GINT_TO_POINTER (i));
+ GINT_TO_POINTER (i+1));
list = g_list_append (list, item);
}