+2008-03-27 Michael Natterer <mitch@imendio.com>
+
+ Enable fixing: NB#79916 and NB#79918: The help topic for Color
+ selector cannot be opened
+
+ * src/hildon-color-button.c: add signal "setup-dialog" and emit it
+ when the popup color selector is created. Please connect to this
+ signal in order to set the dialog's help ID.
+
2008-03-25 Sven Herzberg <sven@imendio.com>
Fixes: MB#1212: Hide info banners (infoprints) on click
#define INNER_BORDER_THICKNESS 2
-enum
+enum
+{
+ SETUP_DIALOG,
+ LAST_SIGNAL
+};
+
+enum
{
PROP_0,
PROP_COLOR,
gint h);
static gpointer parent_class = NULL;
+static guint signals [LAST_SIGNAL] = { 0, };
/**
* hildon_color_button_get_type:
button_class->clicked = hildon_color_button_clicked;
widget_class->mnemonic_activate = hildon_color_button_mnemonic_activate;
+ signals[SETUP_DIALOG] =
+ g_signal_new ("setup-dialog",
+ G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_LAST,
+ 0,
+ NULL, NULL,
+ gtk_marshal_VOID__OBJECT,
+ G_TYPE_NONE, 1,
+ HILDON_TYPE_COLOR_CHOOSER_DIALOG);
+
/**
* HildonColorButton:color:
*
cs_dialog = HILDON_COLOR_CHOOSER_DIALOG (priv->dialog);
if (parent)
gtk_window_set_transient_for (GTK_WINDOW (cs_dialog), GTK_WINDOW (parent));
+
+ g_signal_emit (button, signals[SETUP_DIALOG], 0, priv->dialog);
}
/* Set the initial color for the color selector dialog */