New upstream version 2.10.14
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Generated by gdbus-codegen 2.61.1 from dbus-service.xml. DO NOT EDIT.
|
||||
* Generated by gdbus-codegen 2.62.0 from dbus-service.xml. DO NOT EDIT.
|
||||
*
|
||||
* The license of this code is the same as for the D-Bus interface description
|
||||
* it was derived from.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Generated by gdbus-codegen 2.61.1 from dbus-service.xml. DO NOT EDIT.
|
||||
* Generated by gdbus-codegen 2.62.0 from dbus-service.xml. DO NOT EDIT.
|
||||
*
|
||||
* The license of this code is the same as for the D-Bus interface description
|
||||
* it was derived from.
|
||||
|
@ -36,6 +36,7 @@
|
||||
|
||||
#include "display/gimpdisplay.h"
|
||||
#include "display/gimpdisplayshell.h"
|
||||
#include "display/gimpimagewindow.h"
|
||||
|
||||
#include "file/file-open.h"
|
||||
|
||||
@ -166,6 +167,7 @@ gui_unique_win32_message_handler (HWND hWnd,
|
||||
if (unique_gimp)
|
||||
{
|
||||
COPYDATASTRUCT *copydata = (COPYDATASTRUCT *) lParam;
|
||||
GimpObject *display;
|
||||
|
||||
if (copydata->cbData > 0)
|
||||
{
|
||||
@ -193,6 +195,11 @@ gui_unique_win32_message_handler (HWND hWnd,
|
||||
g_source_attach (source, NULL);
|
||||
g_source_unref (source);
|
||||
}
|
||||
|
||||
/* Deiconify the window if minimized. */
|
||||
display = gimp_container_get_first_child (unique_gimp->displays);
|
||||
if (display)
|
||||
gimp_display_shell_present (gimp_display_get_shell (GIMP_DISPLAY (display)));
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
|
@ -48,6 +48,8 @@
|
||||
#include "tools/gimptool.h"
|
||||
#include "tools/tool_manager.h"
|
||||
|
||||
#include "widgets/gimpaction.h"
|
||||
#include "widgets/gimpactiongroup.h"
|
||||
#include "widgets/gimpaction-history.h"
|
||||
#include "widgets/gimpclipboard.h"
|
||||
#include "widgets/gimpcolorselectorpalette.h"
|
||||
@ -562,7 +564,7 @@ gui_add_to_app_menu (GimpUIManager *ui_manager,
|
||||
{
|
||||
GtkWidget *item;
|
||||
|
||||
item = gtk_ui_manager_get_widget (GTK_UI_MANAGER (ui_manager), action_path);
|
||||
item = gimp_ui_manager_get_widget (ui_manager, action_path);
|
||||
|
||||
if (GTK_IS_MENU_ITEM (item))
|
||||
gtkosx_application_insert_app_menu_item (osx_app, GTK_WIDGET (item), index);
|
||||
@ -637,8 +639,8 @@ gui_restore_after_callback (Gimp *gimp,
|
||||
|
||||
osx_app = gtkosx_application_get ();
|
||||
|
||||
menu = gtk_ui_manager_get_widget (GTK_UI_MANAGER (image_ui_manager),
|
||||
"/image-menubar");
|
||||
menu = gimp_ui_manager_get_widget (image_ui_manager,
|
||||
"/image-menubar");
|
||||
if (GTK_IS_MENU_ITEM (menu))
|
||||
menu = gtk_menu_item_get_submenu (GTK_MENU_ITEM (menu));
|
||||
|
||||
@ -671,8 +673,8 @@ gui_restore_after_callback (Gimp *gimp,
|
||||
item = gtk_separator_menu_item_new ();
|
||||
gtkosx_application_insert_app_menu_item (osx_app, item, 8);
|
||||
|
||||
item = gtk_ui_manager_get_widget (GTK_UI_MANAGER (image_ui_manager),
|
||||
"/image-menubar/File/file-quit");
|
||||
item = gimp_ui_manager_get_widget (image_ui_manager,
|
||||
"/image-menubar/File/file-quit");
|
||||
gtk_widget_hide (item);
|
||||
|
||||
g_signal_connect (osx_app, "NSApplicationBlockTermination",
|
||||
@ -1025,30 +1027,34 @@ gui_check_action_exists (const gchar *accel_path)
|
||||
GList *list;
|
||||
|
||||
manager = gimp_ui_managers_from_name ("<Image>")->data;
|
||||
for (list = gtk_ui_manager_get_action_groups (GTK_UI_MANAGER (manager));
|
||||
|
||||
for (list = gimp_ui_manager_get_action_groups (manager);
|
||||
list;
|
||||
list = g_list_next (list))
|
||||
{
|
||||
GtkActionGroup *group = list->data;
|
||||
GList *actions = NULL;
|
||||
GList *list2;
|
||||
GimpActionGroup *group = list->data;
|
||||
GList *actions = NULL;
|
||||
GList *list2;
|
||||
|
||||
actions = gimp_action_group_list_actions (group);
|
||||
|
||||
actions = gtk_action_group_list_actions (GTK_ACTION_GROUP (group));
|
||||
for (list2 = actions; list2; list2 = g_list_next (list2))
|
||||
{
|
||||
const gchar *path;
|
||||
GtkAction *action = list2->data;
|
||||
GimpAction *action = list2->data;
|
||||
const gchar *path = gimp_action_get_accel_path (action);
|
||||
|
||||
path = gtk_action_get_accel_path (action);
|
||||
if (g_strcmp0 (path, accel_path) == 0)
|
||||
{
|
||||
action_exists = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
g_list_free (actions);
|
||||
|
||||
if (action_exists)
|
||||
break;
|
||||
}
|
||||
|
||||
return action_exists;
|
||||
}
|
||||
|
Reference in New Issue
Block a user