configure.in moved the definition of the symbol prefix to the configure

2003-11-15  Sven Neumann  <sven@gimp.org>

	* configure.in
	* app/Makefile.am: moved the definition of the symbol prefix to
	the configure script. Set it to '_' for MacOS X and Win32.

	* libgimpwidgets/gimpwidgets.[ch]: removed the deprecation guards
	again. It doesn't make sense to deprecate these function now.
This commit is contained in:
Sven Neumann 2003-11-15 11:27:34 +00:00 committed by Sven Neumann
parent a120902fb8
commit d488037396
8 changed files with 117 additions and 57 deletions

View File

@ -1,3 +1,12 @@
2003-11-15 Sven Neumann <sven@gimp.org>
* configure.in
* app/Makefile.am: moved the definition of the symbol prefix to
the configure script. Set it to '_' for MacOS X and Win32.
* libgimpwidgets/gimpwidgets.[ch]: removed the deprecation guards
again. It doesn't make sense to deprecate these function now.
2003-11-15 Michael Natterer <mitch@gimp.org>
* plug-ins/common/gee.c

View File

@ -578,6 +578,32 @@ if test "x$shmtype" = "xsysv"; then
fi
########################
# Define a symbol prefix
########################
AC_MSG_CHECKING([whether symbols are prefixed])
case "$target_or_host" in
*-*-mingw*)
SYMPREFIX='_'
;;
darwin* | rhapsody* | machten*)
SYMPREFIX='_'
;;
*)
;;
esac
if test -n "$SYMPREFIX"; then
AC_MSG_RESULT([yes, with a $SYMPREFIX])
else
AC_MSG_RESULT(no)
fi
AC_SUBST(SYMPREFIX)
##################################
# Check for regex support in glibc
##################################

View File

@ -1,3 +1,11 @@
2003-11-15 Sven Neumann <sven@gimp.org>
* app/Makefile.am (unused_symbols): use $SYMPREFIX as defined by
the configure script.
* libgimpwidgets/libgimpwidgets-sections.txt
* libgimpwidgets/tmpl/gimpwidgets.sgml: added new functions.
2003-11-14 Sven Neumann <sven@gimp.org>
* libgimpwidgets/Makefile.am: tell gtk-doc about

View File

@ -61,12 +61,12 @@ GTKDOC_CFLAGS = \
-I$(includedir)
unused_symbols = \
-u gimp_container_get_filtered_name_array \
-u gimp_xml_parser_new \
-u gimp_drawable_stroke_vectors
-u $(SYMPREFIX)gimp_container_filter \
-u $(SYMPREFIX)gimp_xml_parser_new \
-u $(SYMPREFIX)gimp_drawable_stroke_vectors
GTKDOC_LIBS = \
$(unused_symbols) \
$(unused_symbols) \
$(top_builddir)/app/app_procs.o \
$(top_builddir)/app/batch.o \
$(top_builddir)/app/errors.o \

View File

@ -480,17 +480,20 @@ GIMP_STOCK_WILBER_EEK
<SECTION>
<FILE>gimpwidgets</FILE>
<TITLE>GimpWidgets</TITLE>
gimp_int_option_menu_new
gimp_int_option_menu_set_history
gimp_option_menu_new
gimp_option_menu_new2
gimp_option_menu_set_history
gimp_option_menu_set_sensitive
GimpOptionMenuSensitivityCallback
gimp_int_radio_group_new
gimp_int_option_menu_new
gimp_int_option_menu_set_history
gimp_int_option_menu_set_sensitive
GimpIntOptionMenuSensitivityCallback
gimp_radio_group_new
gimp_radio_group_new2
gimp_radio_group_set_active
gimp_int_radio_group_new
gimp_int_radio_group_set_active
gimp_spin_button_new
GIMP_SCALE_ENTRY_LABEL
GIMP_SCALE_ENTRY_SCALE

View File

@ -15,28 +15,6 @@ helper functions.
</para>
<!-- ##### FUNCTION gimp_int_option_menu_new ##### -->
<para>
</para>
@menu_only:
@menu_item_callback:
@menu_item_callback_data:
@initial:
@Varargs:
@Returns:
<!-- ##### FUNCTION gimp_int_option_menu_set_history ##### -->
<para>
</para>
@option_menu:
@item_data:
<!-- ##### FUNCTION gimp_option_menu_new ##### -->
<para>
@ -89,20 +67,48 @@ helper functions.
@Returns:
<!-- ##### FUNCTION gimp_int_radio_group_new ##### -->
<!-- ##### FUNCTION gimp_int_option_menu_new ##### -->
<para>
</para>
@in_frame:
@frame_title:
@radio_button_callback:
@radio_button_callback_data:
@menu_only:
@menu_item_callback:
@menu_item_callback_data:
@initial:
@Varargs:
@Returns:
<!-- ##### FUNCTION gimp_int_option_menu_set_history ##### -->
<para>
</para>
@option_menu:
@item_data:
<!-- ##### FUNCTION gimp_int_option_menu_set_sensitive ##### -->
<para>
</para>
@option_menu:
@callback:
@callback_data:
<!-- ##### USER_FUNCTION GimpIntOptionMenuSensitivityCallback ##### -->
<para>
</para>
@item_data:
@callback_data:
@Returns:
<!-- ##### FUNCTION gimp_radio_group_new ##### -->
<para>
@ -137,6 +143,29 @@ helper functions.
@item_data:
<!-- ##### FUNCTION gimp_int_radio_group_new ##### -->
<para>
</para>
@in_frame:
@frame_title:
@radio_button_callback:
@radio_button_callback_data:
@initial:
@Varargs:
@Returns:
<!-- ##### FUNCTION gimp_int_radio_group_set_active ##### -->
<para>
</para>
@radio_button:
@item_data:
<!-- ##### FUNCTION gimp_spin_button_new ##### -->
<para>

View File

@ -51,8 +51,6 @@
* @menu_only: %TRUE if the function should return a #GtkMenu only.
* @...: A %NULL-terminated @va_list describing the menu items.
*
* DEPRECATED. Use gimp_int_option_menu_new() instead.
*
* Convenience function to create a #GtkOptionMenu or a #GtkMenu.
*
* Returns: A #GtkOptionMenu or a #GtkMenu (depending on @menu_only).
@ -167,8 +165,6 @@ gimp_option_menu_new (gboolean menu_only,
* @initial: The @item_data of the initially selected menu item.
* @...: A %NULL-terminated @va_list describing the menu items.
*
* DEPRECATED. Use gimp_int_option_menu_new() instead.
*
* Convenience function to create a #GtkOptionMenu or a #GtkMenu.
*
* Returns: A #GtkOptionMenu or a #GtkMenu (depending on @menu_only).
@ -388,8 +384,6 @@ gimp_int_option_menu_new (gboolean menu_only,
* gimp_option_menu_new2().
* @item_data: The @item_data of the menu item you want to select.
*
* DEPRECATED. Use gimp_int_option_menu_set_history() instead.
*
* Iterates over all entries in a #GtkOptionMenu and selects the one
* with the matching @item_data. Probably only makes sense to use with
* a #GtkOptionMenu that was created using gimp_option_menu_new() or
@ -453,8 +447,6 @@ gimp_int_option_menu_set_history (GtkOptionMenu *option_menu,
* the sensitivity state.
* @callback_data: data to pass to the @callback function.
*
* DEPRECATED. Use gimp_int_option_menu_set_sensitive() instead.
*
* Calls the given @callback for each item in the menu and passes it the
* item_data and the @callback_data. The menu item's sensitivity is set
* according to the return value of this function.
@ -537,8 +529,6 @@ gimp_int_option_menu_set_sensitive (GtkOptionMenu *option
* @frame_title: The title of the Frame or %NULL if you don't want a title.
* @...: A %NULL-terminated @va_list describing the radio buttons.
*
* DEPRECATED. Use gimp_int_radio_group_new() instead.
*
* Convenience function to create a group of radio buttons embedded into
* a #GtkFrame or #GtkVbox.
*
@ -650,8 +640,6 @@ gimp_radio_group_new (gboolean in_frame,
* @...: A %NULL-terminated @va_list describing
* the radio buttons.
*
* DEPRECATED. Use gimp_int_radio_group_new() instead.
*
* Convenience function to create a group of radio buttons embedded into
* a #GtkFrame or #GtkVbox.
*
@ -861,10 +849,8 @@ gimp_int_radio_group_new (gboolean in_frame,
* @radio_button: Pointer to a #GtkRadioButton.
* @item_data: The @item_data of the radio button you want to select.
*
* DEPRECATED. Use gimp_int_radio_group_set_active() instead.
*
* Calls gtk_toggle_button_set_active() with the radio button that was created
* with a matching @item_data.
* Calls gtk_toggle_button_set_active() with the radio button that was
* created with a matching @item_data.
**/
void
gimp_radio_group_set_active (GtkRadioButton *radio_button,

View File

@ -83,7 +83,6 @@ void gimp_int_option_menu_set_sensitive (GtkOptionMenu *option_menu,
gpointer callback_data);
#ifndef GIMP_DISABLE_DEPRECATED
GtkWidget * gimp_option_menu_new (gboolean menu_only,
/* specify menu items as va_list:
@ -110,14 +109,14 @@ GtkWidget * gimp_option_menu_new2 (gboolean menu_only,
void gimp_option_menu_set_history (GtkOptionMenu *option_menu,
gpointer item_data);
typedef gboolean (*GimpOptionMenuSensitivityCallback) (gpointer item_data,
gpointer callback_data);
void gimp_option_menu_set_sensitive (GtkOptionMenu *option_menu,
GimpOptionMenuSensitivityCallback callback,
gpointer callback_data);
#endif /* GIMP_DISABLE_DEPRECATED */
GtkWidget * gimp_int_radio_group_new (gboolean in_frame,
const gchar *frame_title,
@ -133,10 +132,10 @@ GtkWidget * gimp_int_radio_group_new (gboolean in_frame,
...);
void gimp_int_radio_group_set_active (GtkRadioButton *radio_button,
gint item_data);
void gimp_int_radio_group_set_active (GtkRadioButton *radio_button,
gint item_data);
#ifndef GIMP_DISABLE_DEPRECATED
GtkWidget * gimp_radio_group_new (gboolean in_frame,
const gchar *frame_title,
@ -163,9 +162,9 @@ GtkWidget * gimp_radio_group_new2 (gboolean in_frame,
*/
...);
void gimp_radio_group_set_active (GtkRadioButton *radio_button,
gpointer item_data);
#endif /* GIMP_DISABLE_DEPRECATED */
GtkWidget * gimp_spin_button_new (/* return value: */