#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#if GTK_CHECK_VERSION(2,10,0)
-
#include "viking.h"
#include "print.h"
#include "print-preview.h"
data.width = vik_viewport_get_width(vvp);
data.height = vik_viewport_get_height(vvp);
- data.xres = data.yres = 230; /* FIXME */
+ data.xres = data.yres = 1; // This forces it to default to a 100% page size
if (print_settings != NULL)
gtk_print_operation_set_print_settings (print_oper, print_settings);
case 4:
copy_row_from_rgba (surface_pixels, pixbuf_pixels, data->width);
break;
+ default: break;
}
}
data->offset_x = offset_x_max / 2.0;
data->offset_y = offset_y_max / 2.0;
break;
- }
+
+ default: break;
+ }
}
static void center_changed_cb (GtkWidget *combo, CustomWidgetInfo *info)
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
-#if GTK_CHECK_VERSION (2,24,0)
- combo = gtk_combo_box_text_new ();
-#else
- combo = gtk_combo_box_new_text ();
-#endif
+ combo = vik_combo_box_text_new ();
for (center = center_modes; center->name; center++) {
-#if GTK_CHECK_VERSION (2,24,0)
- gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo), _(center->name));
-#else
- gtk_combo_box_append_text(GTK_COMBO_BOX(combo), _(center->name));
-#endif
+ vik_combo_box_text_append (combo, _(center->name));
}
gtk_combo_box_set_active(GTK_COMBO_BOX(combo), VIK_PRINT_CENTER_BOTH);
gtk_box_pack_start (GTK_BOX (hbox), combo, TRUE, TRUE, 0);
return layout;
}
-
-#endif