mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Include message.h, not messages_i18n.h.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2926 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
21d8db13e7
commit
a8a4dc0fbc
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
#include "top-level.h"
|
#include "top-level.h"
|
||||||
#include "window-help.h"
|
#include "window-help.h"
|
||||||
#include "messages_i18n.h"
|
#include "messages.h"
|
||||||
#include "print-session.h"
|
#include "print-session.h"
|
||||||
#include "ui-callbacks.h"
|
#include "ui-callbacks.h"
|
||||||
#include "glade-cb-gnc-dialogs.h"
|
#include "glade-cb-gnc-dialogs.h"
|
||||||
@ -45,13 +45,13 @@ gnc_ui_print_preview_create(PrintSession * ps) {
|
|||||||
ppd->pc =
|
ppd->pc =
|
||||||
gnome_print_preview_new (GNOME_CANVAS(ppd->canvas),
|
gnome_print_preview_new (GNOME_CANVAS(ppd->canvas),
|
||||||
ps->paper);
|
ps->paper);
|
||||||
|
|
||||||
gtk_object_set_data(GTK_OBJECT(ppd->toplevel), "print_preview_struct",
|
gtk_object_set_data(GTK_OBJECT(ppd->toplevel), "print_preview_struct",
|
||||||
ppd);
|
ppd);
|
||||||
|
|
||||||
gnome_print_meta_render_from_object(GNOME_PRINT_CONTEXT(ppd->pc),
|
gnome_print_meta_render_from_object(GNOME_PRINT_CONTEXT(ppd->pc),
|
||||||
GNOME_PRINT_META(ppd->session->meta));
|
GNOME_PRINT_META(ppd->session->meta));
|
||||||
|
|
||||||
gnome_print_context_close(GNOME_PRINT_CONTEXT(ppd->pc));
|
gnome_print_context_close(GNOME_PRINT_CONTEXT(ppd->pc));
|
||||||
gtk_widget_show_all(ppd->toplevel);
|
gtk_widget_show_all(ppd->toplevel);
|
||||||
|
|
||||||
@ -88,16 +88,16 @@ gnc_ui_print_dialog_create(PrintSession * ps) {
|
|||||||
|
|
||||||
pcd->toplevel = create_Print_Dialog();
|
pcd->toplevel = create_Print_Dialog();
|
||||||
pcd->session = ps;
|
pcd->session = ps;
|
||||||
|
|
||||||
pcd->paper_entry = gtk_object_get_data(GTK_OBJECT(pcd->toplevel),
|
pcd->paper_entry = gtk_object_get_data(GTK_OBJECT(pcd->toplevel),
|
||||||
"paper_entry");
|
"paper_entry");
|
||||||
|
|
||||||
pcd->printer_entry = gtk_object_get_data(GTK_OBJECT(pcd->toplevel),
|
pcd->printer_entry = gtk_object_get_data(GTK_OBJECT(pcd->toplevel),
|
||||||
"printer_entry");
|
"printer_entry");
|
||||||
|
|
||||||
gtk_object_set_data(GTK_OBJECT(pcd->toplevel), "print_struct",
|
gtk_object_set_data(GTK_OBJECT(pcd->toplevel), "print_struct",
|
||||||
pcd);
|
pcd);
|
||||||
|
|
||||||
if(ps->printer->driver) {
|
if(ps->printer->driver) {
|
||||||
if(ps->printer->filename) {
|
if(ps->printer->filename) {
|
||||||
printer_string = g_strdup_printf("(%s) %s",
|
printer_string = g_strdup_printf("(%s) %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user