mirror of https://github.com/GNOME/gimp.git
app: remove gimpdisplay-utils.[ch], move its only function to gimpdisplay.[ch]
This commit is contained in:
parent
4ec7def1d0
commit
f70bc837fa
|
@ -42,7 +42,6 @@
|
|||
#include "widgets/gimphelp-ids.h"
|
||||
|
||||
#include "display/gimpdisplay.h"
|
||||
#include "display/gimpdisplay-utils.h"
|
||||
|
||||
#include "dialogs/dialogs.h"
|
||||
|
||||
|
|
|
@ -75,8 +75,6 @@ libappdisplay_a_sources = \
|
|||
gimpdisplay-foreach.h \
|
||||
gimpdisplay-handlers.c \
|
||||
gimpdisplay-handlers.h \
|
||||
gimpdisplay-utils.c \
|
||||
gimpdisplay-utils.h \
|
||||
gimpdisplayshell.c \
|
||||
gimpdisplayshell.h \
|
||||
gimpdisplayshell-appearance.c \
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
/* GIMP - The GNU Image Manipulation Program
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
* gimpdisplay-utils.c
|
||||
* Copyright (C) 2011 Martin Nordholts <martinn@src.gnome.org>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Utility functions for the display module (not only the GimpDisplay
|
||||
* class).
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "display-types.h"
|
||||
|
||||
#include "gimpdisplay-utils.h"
|
||||
#include "gimpdisplay.h"
|
||||
|
||||
|
||||
/**
|
||||
* gimp_display_get_action_name:
|
||||
* @display:
|
||||
*
|
||||
* Returns: The action name for the given display. The action name
|
||||
* depends on the display ID. The result must be freed with g_free().
|
||||
**/
|
||||
gchar *
|
||||
gimp_display_get_action_name (GimpDisplay *display)
|
||||
{
|
||||
return g_strdup_printf ("windows-display-%04d",
|
||||
gimp_display_get_ID (display));
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
/* GIMP - The GNU Image Manipulation Program
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
* gimpdisplay-utils.h
|
||||
* Copyright (C) 2011 Martin Nordholts <martinn@src.gnome.org>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_DISPLAY_UTILS_H__
|
||||
#define __GIMP_DISPLAY_UTILS_H__
|
||||
|
||||
|
||||
gchar * gimp_display_get_action_name (GimpDisplay *display);
|
||||
|
||||
|
||||
#endif /* __GIMP_ACTIONS_UTILS_H__ */
|
|
@ -586,6 +586,22 @@ gimp_display_get_by_ID (Gimp *gimp,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_display_get_action_name:
|
||||
* @display:
|
||||
*
|
||||
* Returns: The action name for the given display. The action name
|
||||
* depends on the display ID. The result must be freed with g_free().
|
||||
**/
|
||||
gchar *
|
||||
gimp_display_get_action_name (GimpDisplay *display)
|
||||
{
|
||||
g_return_val_if_fail (GIMP_IS_DISPLAY (display), NULL);
|
||||
|
||||
return g_strdup_printf ("windows-display-%04d",
|
||||
gimp_display_get_ID (display));
|
||||
}
|
||||
|
||||
Gimp *
|
||||
gimp_display_get_gimp (GimpDisplay *display)
|
||||
{
|
||||
|
|
|
@ -63,6 +63,8 @@ gint gimp_display_get_ID (GimpDisplay *display);
|
|||
GimpDisplay * gimp_display_get_by_ID (Gimp *gimp,
|
||||
gint ID);
|
||||
|
||||
gchar * gimp_display_get_action_name (GimpDisplay *display);
|
||||
|
||||
Gimp * gimp_display_get_gimp (GimpDisplay *display);
|
||||
|
||||
GimpImage * gimp_display_get_image (GimpDisplay *display);
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
#include "widgets/gimpuimanager.h"
|
||||
|
||||
#include "display/gimpdisplay.h"
|
||||
#include "display/gimpdisplay-utils.h"
|
||||
|
||||
#include "dialogs/dialogs.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue