GtkWidget *widget,
glWindow *window);
-static void set_paste_sensitivity (glWindow *window,
- GtkWidget *focus_widget);
+static void set_copy_paste_sensitivity (glWindow *window,
+ GtkWidget *focus_widget);
/****************************************************************************/
/* Initialize "Paste" sensitivity. */
focus_widget = gtk_window_get_focus (GTK_WINDOW (window));
- set_paste_sensitivity (window, focus_widget);
+ set_copy_paste_sensitivity (window, focus_widget);
gl_debug (DEBUG_WINDOW, "END");
}
g_return_if_fail (label && GL_IS_LABEL (label));
g_return_if_fail (window && GL_IS_WINDOW (window));
- gl_ui_update_selection_verbs (window->ui, GL_VIEW (window->view));
+ gl_ui_update_selection_verbs (window->ui, GL_VIEW (window->view), TRUE);
gl_debug (DEBUG_WINDOW, "END");
}
g_return_if_fail (window && GL_IS_WINDOW (window));
focus_widget = gtk_window_get_focus (GTK_WINDOW (window));
- set_paste_sensitivity (window, focus_widget);
+ set_copy_paste_sensitivity (window, focus_widget);
gl_debug (DEBUG_WINDOW, "END");
}
widget,
G_OBJECT_TYPE_NAME (widget));
- set_paste_sensitivity (window, widget);
+ set_copy_paste_sensitivity (window, widget);
}
gl_debug (DEBUG_WINDOW, "END");
/** PRIVATE. Set paste sensitivity. */
/*---------------------------------------------------------------------------*/
static void
-set_paste_sensitivity (glWindow *window,
- GtkWidget *focus_widget)
+set_copy_paste_sensitivity (glWindow *window,
+ GtkWidget *focus_widget)
{
GtkClipboard *glabels_clipboard;
if ( focus_widget == GL_VIEW(window->view)->canvas )
{
+ gl_ui_update_selection_verbs (window->ui, GL_VIEW (window->view), TRUE);
+
gl_ui_update_paste_verbs (window->ui,
gtk_clipboard_wait_is_text_available (glabels_clipboard));
+
}
else
{
+ gl_ui_update_selection_verbs (window->ui, GL_VIEW (window->view), FALSE);
gl_ui_update_paste_verbs (window->ui, FALSE);
}