forked from AuroraMiddleware/gtk
Emit "update-custom-widget" when the page setup changes
Previously, the signal was only emitted when the user selected another printer. Bug 593001.
This commit is contained in:
parent
2105d946cf
commit
f7cfe2bfea
@ -372,7 +372,7 @@ job_status_changed_cb (GtkPrintJob *job,
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
printer_changed_cb (GtkPrintUnixDialog *print_dialog,
|
print_setup_changed_cb (GtkPrintUnixDialog *print_dialog,
|
||||||
GParamSpec *pspec,
|
GParamSpec *pspec,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
@ -450,7 +450,8 @@ get_print_dialog (GtkPrintOperation *op,
|
|||||||
gtk_print_unix_dialog_add_custom_tab (GTK_PRINT_UNIX_DIALOG (pd),
|
gtk_print_unix_dialog_add_custom_tab (GTK_PRINT_UNIX_DIALOG (pd),
|
||||||
priv->custom_widget, label);
|
priv->custom_widget, label);
|
||||||
|
|
||||||
g_signal_connect (pd, "notify::selected-printer", (GCallback) printer_changed_cb, op);
|
g_signal_connect (pd, "notify::selected-printer", (GCallback) print_setup_changed_cb, op);
|
||||||
|
g_signal_connect (pd, "notify::page-setup", (GCallback) print_setup_changed_cb, op);
|
||||||
}
|
}
|
||||||
|
|
||||||
return pd;
|
return pd;
|
||||||
|
Loading…
Reference in New Issue
Block a user