mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
Whitespace cleanups
This commit is contained in:
parent
dea3b845b9
commit
1a42be00b4
@ -196,16 +196,16 @@ struct GtkPrintUnixDialogPrivate
|
|||||||
GtkWidget *extension_point;
|
GtkWidget *extension_point;
|
||||||
|
|
||||||
/* These are set initially on selected printer (either default printer,
|
/* These are set initially on selected printer (either default printer,
|
||||||
* printer taken from set settings, or user-selected), but when any setting
|
* printer taken from set settings, or user-selected), but when any
|
||||||
* is changed by the user it is cleared.
|
* setting is changed by the user it is cleared.
|
||||||
*/
|
*/
|
||||||
GtkPrintSettings *initial_settings;
|
GtkPrintSettings *initial_settings;
|
||||||
|
|
||||||
GtkPrinterOption *number_up_layout_n_option;
|
GtkPrinterOption *number_up_layout_n_option;
|
||||||
GtkPrinterOption *number_up_layout_2_option;
|
GtkPrinterOption *number_up_layout_2_option;
|
||||||
|
|
||||||
/* This is the initial printer set by set_settings. We look for it in the
|
/* This is the initial printer set by set_settings. We look for it in
|
||||||
* added printers. We clear this whenever the user manually changes
|
* the added printers. We clear this whenever the user manually changes
|
||||||
* to another printer, when the user changes a setting or when we find
|
* to another printer, when the user changes a setting or when we find
|
||||||
* this printer.
|
* this printer.
|
||||||
*/
|
*/
|
||||||
@ -319,7 +319,6 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class)
|
|||||||
FALSE,
|
FALSE,
|
||||||
GTK_PARAM_READWRITE));
|
GTK_PARAM_READWRITE));
|
||||||
|
|
||||||
|
|
||||||
g_type_class_add_private (class, sizeof (GtkPrintUnixDialogPrivate));
|
g_type_class_add_private (class, sizeof (GtkPrintUnixDialogPrivate));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -547,7 +546,6 @@ gtk_print_unix_dialog_finalize (GObject *object)
|
|||||||
priv->printer_list_filter = NULL;
|
priv->printer_list_filter = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (priv->options)
|
if (priv->options)
|
||||||
{
|
{
|
||||||
g_object_unref (priv->options);
|
g_object_unref (priv->options);
|
||||||
@ -960,7 +958,6 @@ default_printer_list_sort_func (GtkTreeModel *model,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
create_printer_list_model (GtkPrintUnixDialog *dialog)
|
create_printer_list_model (GtkPrintUnixDialog *dialog)
|
||||||
{
|
{
|
||||||
@ -1111,7 +1108,6 @@ add_option_to_table (GtkPrinterOption *option,
|
|||||||
0, 2, row - 1, row, GTK_FILL, 0, 0, 0);
|
0, 2, row - 1, row, GTK_FILL, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
setup_page_table (GtkPrinterOptionSet *options,
|
setup_page_table (GtkPrinterOptionSet *options,
|
||||||
const gchar *group,
|
const gchar *group,
|
||||||
@ -1201,7 +1197,6 @@ setup_print_at (GtkPrintUnixDialog *dialog)
|
|||||||
if (option != NULL)
|
if (option != NULL)
|
||||||
gtk_entry_set_text (GTK_ENTRY (priv->print_at_entry), option->value);
|
gtk_entry_set_text (GTK_ENTRY (priv->print_at_entry), option->value);
|
||||||
|
|
||||||
|
|
||||||
priv->updating_print_at = FALSE;
|
priv->updating_print_at = FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@ -1248,7 +1243,6 @@ update_dialog_from_settings (GtkPrintUnixDialog *dialog)
|
|||||||
else
|
else
|
||||||
gtk_widget_hide (priv->job_page);
|
gtk_widget_hide (priv->job_page);
|
||||||
|
|
||||||
|
|
||||||
setup_page_table (priv->options,
|
setup_page_table (priv->options,
|
||||||
"ImageQualityPage",
|
"ImageQualityPage",
|
||||||
priv->image_quality_table,
|
priv->image_quality_table,
|
||||||
@ -1313,7 +1307,6 @@ update_dialog_from_settings (GtkPrintUnixDialog *dialog)
|
|||||||
else
|
else
|
||||||
gtk_widget_hide (priv->advanced_page);
|
gtk_widget_hide (priv->advanced_page);
|
||||||
|
|
||||||
|
|
||||||
g_list_foreach (groups, (GFunc) g_free, NULL);
|
g_list_foreach (groups, (GFunc) g_free, NULL);
|
||||||
g_list_free (groups);
|
g_list_free (groups);
|
||||||
}
|
}
|
||||||
@ -1528,8 +1521,9 @@ selected_printer_changed (GtkTreeSelection *selection,
|
|||||||
-1);
|
-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sets GTK_RESPONSE_OK button sensitive/insensitive depending on whether the printer
|
/* sets GTK_RESPONSE_OK button sensitivity depending on whether the printer
|
||||||
* accepts/rejects jobs */
|
* accepts/rejects jobs
|
||||||
|
*/
|
||||||
if (printer != NULL)
|
if (printer != NULL)
|
||||||
{
|
{
|
||||||
if (!gtk_printer_is_accepting_jobs (printer))
|
if (!gtk_printer_is_accepting_jobs (printer))
|
||||||
@ -1659,7 +1653,6 @@ paint_page (GtkWidget *widget,
|
|||||||
cairo_show_text (cr, text);
|
cairo_show_text (cr, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
draw_collate_cb (GtkWidget *widget,
|
draw_collate_cb (GtkWidget *widget,
|
||||||
GdkEventExpose *event,
|
GdkEventExpose *event,
|
||||||
@ -1881,7 +1874,6 @@ create_main_page (GtkPrintUnixDialog *dialog)
|
|||||||
0, 2, 1, 2, GTK_FILL, 0,
|
0, 2, 1, 2, GTK_FILL, 0,
|
||||||
0, 0);
|
0, 0);
|
||||||
|
|
||||||
|
|
||||||
radio = gtk_radio_button_new_with_mnemonic (gtk_radio_button_get_group (GTK_RADIO_BUTTON (radio)),
|
radio = gtk_radio_button_new_with_mnemonic (gtk_radio_button_get_group (GTK_RADIO_BUTTON (radio)),
|
||||||
_("Se_lection"));
|
_("Se_lection"));
|
||||||
|
|
||||||
@ -2086,7 +2078,6 @@ dialog_set_page_ranges (GtkPrintUnixDialog *dialog,
|
|||||||
g_string_free (s, TRUE);
|
g_string_free (s, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static GtkPrintPages
|
static GtkPrintPages
|
||||||
dialog_get_print_pages (GtkPrintUnixDialog *dialog)
|
dialog_get_print_pages (GtkPrintUnixDialog *dialog)
|
||||||
{
|
{
|
||||||
@ -2679,7 +2670,6 @@ create_page_setup_page (GtkPrintUnixDialog *dialog)
|
|||||||
0, 0);
|
0, 0);
|
||||||
gtk_label_set_mnemonic_widget (GTK_LABEL (label), widget);
|
gtk_label_set_mnemonic_widget (GTK_LABEL (label), widget);
|
||||||
|
|
||||||
|
|
||||||
label = gtk_label_new_with_mnemonic (_("Page or_dering:"));
|
label = gtk_label_new_with_mnemonic (_("Page or_dering:"));
|
||||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||||
gtk_widget_show (label);
|
gtk_widget_show (label);
|
||||||
@ -3061,7 +3051,6 @@ create_advanced_page (GtkPrintUnixDialog *dialog)
|
|||||||
scrolled, label);
|
scrolled, label);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
populate_dialog (GtkPrintUnixDialog *print_dialog)
|
populate_dialog (GtkPrintUnixDialog *print_dialog)
|
||||||
{
|
{
|
||||||
@ -3404,7 +3393,6 @@ gtk_print_unix_dialog_get_settings (GtkPrintUnixDialog *dialog)
|
|||||||
gtk_print_settings_set (settings, "format-for-printer",
|
gtk_print_settings_set (settings, "format-for-printer",
|
||||||
priv->format_for_printer);
|
priv->format_for_printer);
|
||||||
|
|
||||||
|
|
||||||
gtk_print_settings_set_collate (settings,
|
gtk_print_settings_set_collate (settings,
|
||||||
dialog_get_collate (dialog));
|
dialog_get_collate (dialog));
|
||||||
|
|
||||||
@ -3640,4 +3628,3 @@ gtk_print_unix_dialog_get_has_selection (GtkPrintUnixDialog *dialog)
|
|||||||
|
|
||||||
#define __GTK_PRINT_UNIX_DIALOG_C__
|
#define __GTK_PRINT_UNIX_DIALOG_C__
|
||||||
#include "gtkaliasdef.c"
|
#include "gtkaliasdef.c"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user