0,
NULL,
NULL,
- g_cclosure_marshal_BOOLEAN__FLAGS,
- G_TYPE_BOOLEAN,
- 1, G_TYPE_INT);
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE,
+ 0);
/**
* GtkFormDecoder::btn_browse_clicked:
}
}
-static void
+void
gtk_form_decoder_show_btn_clean (GtkFormDecoder *decoder, gboolean visible)
{
GtkFormDecoderPrivate *priv = GTK_FORM_DECODER_GET_PRIVATE (decoder);
gtk_entry_set_icon_sensitive (GTK_ENTRY (priv->txt_decoded), GTK_ENTRY_ICON_SECONDARY, visible);
}
-static void
+void
gtk_form_decoder_show_btn_open (GtkFormDecoder *decoder, gboolean visible)
{
GtkFormDecoderPrivate *priv = GTK_FORM_DECODER_GET_PRIVATE (decoder);
gtk_widget_set_visible (priv->btn_open, visible);
}
-static void
+void
gtk_form_decoder_show_btn_browse (GtkFormDecoder *decoder, gboolean visible)
{
GtkFormDecoderPrivate *priv = GTK_FORM_DECODER_GET_PRIVATE (decoder);
gtk_widget_set_visible (priv->btn_browse, visible);
}
+gboolean
+gtk_form_decoder_btn_clean_is_visible (GtkFormDecoder *decoder)
+{
+ GtkFormDecoderPrivate *priv = GTK_FORM_DECODER_GET_PRIVATE (decoder);
+
+ return gtk_entry_get_icon_stock (GTK_ENTRY (priv->txt_decoded), GTK_ENTRY_ICON_SECONDARY) != NULL;
+}
+
+gboolean
+gtk_form_decoder_btn_open_is_visible (GtkFormDecoder *decoder)
+{
+ GtkFormDecoderPrivate *priv = GTK_FORM_DECODER_GET_PRIVATE (decoder);
+
+ return gtk_widget_get_visible (priv->btn_open);
+}
+
+gboolean
+gtk_form_decoder_btn_browse_is_visible (GtkFormDecoder *decoder)
+{
+ GtkFormDecoderPrivate *priv = GTK_FORM_DECODER_GET_PRIVATE (decoder);
+
+ return gtk_widget_get_visible (priv->btn_browse);
+}
+
/* CALLBACKS */
static void
gtk_form_decoder_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
break;
case PROP_SHOW_CLEAN:
- g_value_set_boolean (value, gtk_entry_get_icon_stock (GTK_ENTRY (priv->txt_decoded), GTK_ENTRY_ICON_SECONDARY) != NULL);
+ g_value_set_boolean (value, gtk_form_decoder_btn_clean_is_visible (decoder));
break;
case PROP_SHOW_OPEN:
- g_value_set_boolean (value, gtk_widget_get_visible (priv->btn_open));
+ g_value_set_boolean (value, gtk_form_decoder_btn_open_is_visible (decoder));
break;
case PROP_SHOW_BROWSE:
- g_value_set_boolean (value, gtk_widget_get_visible (priv->btn_browse));
+ g_value_set_boolean (value, gtk_form_decoder_btn_browse_is_visible (decoder));
break;
default:
gchar *gtk_form_decoder_get_key (GtkFormDecoder *decoder);
gchar *gtk_form_decoder_get_decoded (GtkFormDecoder *decoder);
+void gtk_form_decoder_show_btn_clean (GtkFormDecoder *decoder, gboolean visible);
+void gtk_form_decoder_show_btn_open (GtkFormDecoder *decoder, gboolean visible);
+void gtk_form_decoder_show_btn_browse (GtkFormDecoder *decoder, gboolean visible);
+
+gboolean gtk_form_decoder_btn_clean_is_visible (GtkFormDecoder *decoder);
+gboolean gtk_form_decoder_btn_open_is_visible (GtkFormDecoder *decoder);
+gboolean gtk_form_decoder_btn_browse_is_visible (GtkFormDecoder *decoder);
+
G_END_DECLS