#define OFF_BIT 0x02
#define REFERENCE_LINE "Reference: " /*localized string?*/
+/* FIXME change pointers named 'data' to a more meaningful name */
+
/*
* These are what we use as the standard font sizes, for the size list.
*/
priv->font_color_button, FALSE, FALSE, 0);
/*dummy widget for packing purpose only*/
+ /* FIXME why do we need this? */
gtk_box_pack_start(GTK_BOX(font_color_box), gtk_label_new(""),
TRUE, TRUE, 0);
return g_utf8_collate(a_name, b_name);
}
+/* FIXME this function should be removed, the dialog doesn't need this
+ * binding of esc key */
static gboolean
hildon_font_selection_dialog_preview_key_press(GtkWidget * widget,
GdkEventKey * event,
preview_label);
/* set keypress handler (ESC hardkey) */
+ /* FIXME this is useless and should be removed */
g_signal_connect(G_OBJECT(preview_dialog), "key-press-event",
G_CALLBACK
(hildon_font_selection_dialog_preview_key_press),
}
}
+/* This function is called only from deprecated API */
static
void check_tags(gpointer data, gpointer user_data)
{
}
}
+/* This function is called only from deprecated API */
static
void check_attrs(gpointer data, gpointer user_data)
{
pango_attribute_destroy(attr);
}
+/* This function is called only from deprecated API */
static void
settings_init(HildonFontSelectionDialogSettings *settings,
HildonFontSelectionDialog *fsd)
settings->position = -1;
}
+/* This function is called only from deprecated API */
static void
bit_mask_toggle(gint mask, GtkToggleButton *button,
GObject *object, const gchar *prop,
g_object_notify(object, prop_set);
}
+/* This function is called only from deprecated API */
static void
combo_active(gint active, GtkComboBox *box,
GObject *object, const gchar *prop, const gchar *prop_set)
g_object_notify(object, prop_set);
}
+/* This function is called only from deprecated API */
static void
settings_apply(HildonFontSelectionDialogSettings *settings)
{
hildon_font_selection_dialog_set_preview_text(HildonFontSelectionDialog *
fsd, const gchar * text)
{
+ /* FIXME add propper checking here (g_return_if_fail), also
+ * for text*/
if (HILDON_IS_FONT_SELECTION_DIALOG(fsd)) ;
{
HildonFontSelectionDialogPrivate *priv =