mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 02:40:07 +00:00
fontchooser: Sanitize variable declarations
- no empty lines between variables - no unnecessary casts - use glib-style casts - no spaces
This commit is contained in:
parent
5a5737e3b6
commit
2b83d03604
@ -363,16 +363,13 @@ static void
|
||||
cursor_changed_cb (GtkTreeView *treeview,
|
||||
gpointer user_data)
|
||||
{
|
||||
GtkFontChooserWidget *fontchooser = (GtkFontChooserWidget*)user_data;
|
||||
GtkFontChooserWidget *fontchooser = user_data;
|
||||
GtkFontChooserWidgetPrivate *priv = fontchooser->priv;
|
||||
|
||||
PangoFontFamily *family;
|
||||
PangoFontFace *face;
|
||||
PangoFontDescription *desc;
|
||||
|
||||
gint *sizes;
|
||||
gint i, n_sizes;
|
||||
|
||||
GtkTreeIter iter;
|
||||
GtkTreePath *path = NULL;
|
||||
|
||||
@ -430,9 +427,8 @@ zoom_preview_cb (GtkWidget *scrolled_window,
|
||||
GdkEventScroll *event,
|
||||
gpointer user_data)
|
||||
{
|
||||
GtkFontChooserWidget *fc = (GtkFontChooserWidget*)user_data;
|
||||
GtkFontChooserWidget *fc = user_data;
|
||||
GtkFontChooserWidgetPrivate *priv = fc->priv;
|
||||
|
||||
GtkAdjustment *adj = gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (priv->size_spin));
|
||||
|
||||
if (event->direction == GDK_SCROLL_UP || event->direction == GDK_SCROLL_RIGHT)
|
||||
@ -452,7 +448,7 @@ row_inserted_cb (GtkTreeModel *model,
|
||||
GtkTreeIter *iter,
|
||||
gpointer user_data)
|
||||
{
|
||||
GtkFontChooserWidget *fontchooser = (GtkFontChooserWidget*)user_data;
|
||||
GtkFontChooserWidget *fontchooser = user_data;
|
||||
GtkFontChooserWidgetPrivate *priv = fontchooser->priv;
|
||||
|
||||
gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->list_notebook), 0);
|
||||
@ -463,7 +459,7 @@ row_deleted_cb (GtkTreeModel *model,
|
||||
GtkTreePath *path,
|
||||
gpointer user_data)
|
||||
{
|
||||
GtkFontChooserWidget *fontchooser = (GtkFontChooserWidget*)user_data;
|
||||
GtkFontChooserWidget *fontchooser = user_data;
|
||||
GtkFontChooserWidgetPrivate *priv = fontchooser->priv;
|
||||
|
||||
if (gtk_tree_model_iter_n_children (model, NULL) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user