diff --git a/src/objects/window/header.c b/src/objects/window/header.c index e93e458..b325d1e 100644 --- a/src/objects/window/header.c +++ b/src/objects/window/header.c @@ -41,6 +41,22 @@ } + /* + static gboolean bg_deactivate_button(GtkWidget *button) { + debug("******************** %s %p",__FUNCTION__,button) + return FALSE; + } + + static void on_state_flags_changed(GtkWidget *button, GtkStateFlags flags, gpointer user_data) { + + debug("%s(%p,%d)",__FUNCTION__,button,flags & GTK_STATE_FLAG_ACTIVE); + + if(flags & GTK_STATE_FLAG_ACTIVE) + g_idle_add((GSourceFunc) bg_deactivate_button, button); + + } + */ + GtkWidget * pw3270_header_button_new_from_builder(GtkWidget *widget, GtkBuilder * builder, const gchar *action_name) { GtkWidget * button = NULL; @@ -66,8 +82,6 @@ button = pw3270_setup_image_button(gtk_menu_button_new(),icon_name); gtk_actionable_set_action_name(GTK_ACTIONABLE(button),action_name); gtk_widget_set_visible(button,g_action_get_enabled(action)); - - } } @@ -75,8 +89,10 @@ if(button) { g_signal_connect(button, "notify::sensitive", G_CALLBACK(on_sensitive), widget); + // g_signal_connect(button,"state-flags-changed",G_CALLBACK(on_state_flags_changed), widget); gtk_widget_set_focus_on_click(button,FALSE); gtk_widget_set_can_focus(button,FALSE); + gtk_widget_set_can_default(button,FALSE); } diff --git a/src/objects/window/window.c b/src/objects/window/window.c index 057bb83..b2227a9 100644 --- a/src/objects/window/window.c +++ b/src/objects/window/window.c @@ -232,7 +232,9 @@ static const gchar * start_actions[] = { "win.disconnect", - "win.reconnect" + "win.reconnect", + "win.file.transfer", + "win.print" }; for(ix = 0; ix < G_N_ELEMENTS(start_actions); ix++) { -- libgit2 0.21.2