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