Commit 5427eaaf authored by Jonathan Blandford's avatar Jonathan Blandford Committed by Jonathan Blandford
Browse files

busted API. Suck.

Tue Mar 22 22:44:18 2005  Jonathan Blandford  <jrb@redhat.com>

        * shell/ev-window.c (ev_window_print): busted API.  Suck.

        * ps/ps-document.c (setup_page): cast to guchar
parent cd63c48a
Tue Mar 22 22:44:18 2005 Jonathan Blandford <jrb@redhat.com>
* shell/ev-window.c (ev_window_print): busted API. Suck.
* ps/ps-document.c (setup_page): cast to guchar
2005-03-21 Marco Pesenti Gritti <marco@gnome.org>
* ps/gsdefaults.c:
......
......@@ -411,7 +411,7 @@ setup_page (PSDocument *gs)
setlocale(LC_NUMERIC, savelocale);
#endif
gdk_property_change (gs->pstarget, gs_class->gs_atom, gs_class->string_atom,
8, GDK_PROP_MODE_REPLACE, buf, strlen(buf));
8, GDK_PROP_MODE_REPLACE, (guchar *)buf, strlen(buf));
gdk_flush ();
}
......
......@@ -224,7 +224,7 @@ ev_print_job_use_print_dialog_settings (EvPrintJob *job, GnomePrintDialog *dialo
gnome_print_config_get_page_size (print_config,
&job->width, &job->height);
gnome_print_config_get_boolean (print_config,
GNOME_PRINT_KEY_DUPLEX, &job->duplex);
(guchar *)GNOME_PRINT_KEY_DUPLEX, &job->duplex);
gnome_print_config_unref (print_config);
}
......
......@@ -754,7 +754,7 @@ ev_view_create_invisible_cursor(void)
{
GdkBitmap *empty;
GdkColor black = { 0, 0, 0, 0 };
static unsigned char bits[] = { 0x00 };
static char bits[] = { 0x00 };
empty = gdk_bitmap_create_from_data (NULL, bits, 1, 1);
......
......@@ -961,7 +961,7 @@ ev_window_print (EvWindow *ev_window)
config = gnome_print_config_default ();
job = gnome_print_job_new (config);
print_dialog = gnome_print_dialog_new (job, _("Print"),
print_dialog = gnome_print_dialog_new (job, (guchar *) _("Print"),
(GNOME_PRINT_DIALOG_RANGE |
GNOME_PRINT_DIALOG_COPIES));
gtk_dialog_set_response_sensitive (GTK_DIALOG (print_dialog),
......@@ -989,7 +989,7 @@ ev_window_print (EvWindow *ev_window)
GTK_MESSAGE_DIALOG (dialog),
_("You were trying to print to a printer using the \"%s\" driver. This program requires a PostScript printer driver."),
gnome_print_config_get (
config, "Settings.Engine.Backend.Driver"));
config, (guchar *)"Settings.Engine.Backend.Driver"));
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment