GtkWidget *icon;
+#ifdef G_OS_WIN32
+ GtkStyleContext *context;
+ GtkCssProvider *provider;
+#endif
+
priv->hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 1);
gtk_container_add (GTK_CONTAINER (decoder), priv->hbox);
gtk_widget_show (priv->hbox);
g_signal_connect (G_OBJECT (priv->txt_decoded), "icon-press",
G_CALLBACK (gtk_form_decoder_on_btn_clean_clicked), (gpointer)decoder);
+#ifdef G_OS_WIN32
+ provider = gtk_css_provider_new ();
+ gtk_css_provider_load_from_data (GTK_CSS_PROVIDER (provider),
+ ".button {\n"
+ "padding: 0px;\n"
+ "}\n", -1, NULL);
+#endif
+
priv->btn_new = gtk_button_new ();
gtk_widget_set_tooltip_text (priv->btn_new, _("New"));
gtk_box_pack_start (GTK_BOX (priv->hbox), priv->btn_new, FALSE, FALSE, 0);
gtk_container_add (GTK_CONTAINER (priv->btn_new), icon);
gtk_widget_show (icon);
+#ifdef G_OS_WIN32
+ context = gtk_widget_get_style_context (priv->btn_new);
+ gtk_style_context_add_provider (context,
+ GTK_STYLE_PROVIDER (provider),
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+#endif
+
g_signal_connect (G_OBJECT (priv->btn_new), "clicked",
G_CALLBACK (gtk_form_decoder_on_btn_new_clicked), (gpointer)decoder);
gtk_container_add (GTK_CONTAINER (priv->btn_open), icon);
gtk_widget_show (icon);
+#ifdef G_OS_WIN32
+ context = gtk_widget_get_style_context (priv->btn_open);
+ gtk_style_context_add_provider (context,
+ GTK_STYLE_PROVIDER (provider),
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+#endif
+
g_signal_connect (G_OBJECT (priv->btn_open), "clicked",
G_CALLBACK (gtk_form_decoder_on_btn_open_clicked), (gpointer)decoder);
gtk_widget_show (icon);
gtk_widget_show (priv->btn_browse);
+#ifdef G_OS_WIN32
+ context = gtk_widget_get_style_context (priv->btn_browse);
+ gtk_style_context_add_provider (context,
+ GTK_STYLE_PROVIDER (provider),
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+#endif
+
g_signal_connect (G_OBJECT (priv->btn_browse), "clicked",
G_CALLBACK (gtk_form_decoder_on_btn_browse_clicked), (gpointer)decoder);
gtk_box_pack_start (GTK_BOX (priv->hbox), priv->lbl_key, FALSE, FALSE, 0);
gtk_widget_set_no_show_all (priv->lbl_key, TRUE);
+#ifdef G_OS_WIN32
+ g_object_unref (provider);
+#endif
+
priv->completion_dm = NULL;
priv->completion_key_column = 0;
priv->completion_text_column = 0;