Browse Source

Use -fvisibility=hidden in libxfce4panel.

upstream/xfce4-panel-4.10.1
Nick Schermer 13 years ago
parent
commit
c28d95fe2b
  1. 3
      configure.in.in
  2. 4
      libxfce4panel/libxfce4panel.h
  3. 9
      libxfce4panel/xfce-arrow-button.c
  4. 1
      libxfce4panel/xfce-arrow-button.h
  5. 9
      libxfce4panel/xfce-hvbox.c
  6. 1
      libxfce4panel/xfce-hvbox.h
  7. 10
      libxfce4panel/xfce-panel-convenience.c
  8. 7
      libxfce4panel/xfce-panel-macros.h
  9. 18
      libxfce4panel/xfce-panel-plugin-provider.c
  10. 2
      libxfce4panel/xfce-panel-plugin-provider.h
  11. 49
      libxfce4panel/xfce-panel-plugin.c
  12. 1
      libxfce4panel/xfce-panel-plugin.h
  13. 6
      plugins/clock/clock-analog.h
  14. 6
      plugins/clock/clock-binary.h
  15. 2
      plugins/clock/clock-dialog.h
  16. 6
      plugins/clock/clock-digital.h
  17. 6
      plugins/clock/clock-lcd.h
  18. 14
      plugins/clock/clock.h
  19. 4
      plugins/launcher/launcher-dialog.h
  20. 4
      plugins/launcher/launcher-exec.h
  21. 14
      plugins/launcher/launcher.h
  22. 2
      plugins/systray/Makefile.am
  23. 18
      plugins/systray/xfce-tray-manager.h
  24. 24
      plugins/systray/xfce-tray-widget.h
  25. 2
      plugins/tasklist.new/tasklist-box.h
  26. 2
      plugins/tasklist.new/tasklist-plugin.h
  27. 2
      plugins/tasklist/tasklist-dialogs.h
  28. 4
      plugins/tasklist/tasklist.h

3
configure.in.in

@ -191,7 +191,7 @@ fi
dnl ****************************************
dnl *** Check for ELF visibility support ***
dnl ****************************************
AC_ARG_ENABLE([visibility], AC_HELP_STRING([--disable-visibility], [Don't use ELF visibility attributes]), [], [enable_visibility=yes])
AC_ARG_ENABLE([visibility], AC_HELP_STRING([--disable-visibility], [Do not use ELF visibility attributes]), [], [enable_visibility=yes])
have_gnuc_visibility=no
if test x"$enable_visibility" != x"no"; then
dnl Check whether the compiler supports the visibility attribute
@ -215,6 +215,7 @@ if test x"$enable_visibility" != x"no"; then
fi
if test x"$have_gnuc_visibility" = x"yes"; then
PLATFORM_CPPFLAGS="$PLATFORM_CPPFLAGS -DHAVE_GNUC_VISIBILITY"
PLATFORM_CFLAGS="$PLATFORM_CFLAGS -fvisibility=hidden"
fi
AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test x"$have_gnuc_visibility" = x"yes"])

4
libxfce4panel/libxfce4panel.h

@ -24,12 +24,12 @@ G_BEGIN_DECLS
#define LIBXFCE4PANEL_INSIDE_LIBXFCE4PANEL_H
#include <libxfce4panel/xfce-panel-macros.h>
#include <libxfce4panel/xfce-arrow-button.h>
#include <libxfce4panel/xfce-hvbox.h>
#include <libxfce4panel/xfce-panel-convenience.h>
#include <libxfce4panel/xfce-panel-enums.h>
#include <libxfce4panel/xfce-panel-plugin.h>
#include <libxfce4panel/xfce-panel-macros.h>
#undef LIBXFCE4PANEL_INSIDE_LIBXFCE4PANEL_H
@ -50,7 +50,7 @@ G_BEGIN_DECLS
(*construct_func) (plugin); \
} \
\
G_MODULE_EXPORT XfcePanelPlugin * \
PANEL_SYMBOL_EXPORT G_MODULE_EXPORT XfcePanelPlugin * \
xfce_panel_plugin_construct (const gchar *name, \
const gchar *id, \
const gchar *display_name, \

9
libxfce4panel/xfce-arrow-button.c

@ -30,8 +30,7 @@
#endif
#include <gtk/gtk.h>
#include <libxfce4panel/xfce-panel-macros.h>
#include <libxfce4panel/xfce-arrow-button.h>
#include <libxfce4panel/libxfce4panel.h>
#define ARROW_WIDTH (8)
#define ARROW_PADDING (2)
@ -252,7 +251,7 @@ xfce_arrow_button_child_type (GtkContainer *container)
*
* Returns: The newly created #XfceArrowButton widget.
**/
GtkWidget *
PANEL_SYMBOL_EXPORT GtkWidget *
xfce_arrow_button_new (GtkArrowType arrow_type)
{
return g_object_new (XFCE_TYPE_ARROW_BUTTON, "arrow-type", arrow_type, NULL);
@ -267,7 +266,7 @@ xfce_arrow_button_new (GtkArrowType arrow_type)
*
* Sets the arrow type for @button.
**/
void
PANEL_SYMBOL_EXPORT void
xfce_arrow_button_set_arrow_type (XfceArrowButton *button,
GtkArrowType arrow_type)
{
@ -299,7 +298,7 @@ xfce_arrow_button_set_arrow_type (XfceArrowButton *button,
*
* Returns: the #GtkArrowType of @button.
**/
GtkArrowType
PANEL_SYMBOL_EXPORT GtkArrowType
xfce_arrow_button_get_arrow_type (XfceArrowButton *button)
{
g_return_val_if_fail (XFCE_IS_ARROW_BUTTON (button), GTK_ARROW_UP);

1
libxfce4panel/xfce-arrow-button.h

@ -57,6 +57,7 @@ struct _XfceArrowButton
GtkArrowType arrow_type;
};
PANEL_SYMBOL_EXPORT
GType xfce_arrow_button_get_type (void) G_GNUC_CONST;
GtkWidget *xfce_arrow_button_new (GtkArrowType arrow_type) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;

9
libxfce4panel/xfce-hvbox.c

@ -27,8 +27,7 @@
#endif
#include <gtk/gtk.h>
#include <libxfce4panel/xfce-panel-macros.h>
#include <libxfce4panel/xfce-hvbox.h>
#include <libxfce4panel/libxfce4panel.h>
@ -127,7 +126,7 @@ xfce_hvbox_size_allocate (GtkWidget *widget,
*
* Return value: the newly allocated #XfceHVBox container widget.
**/
GtkWidget *
PANEL_SYMBOL_EXPORT GtkWidget *
xfce_hvbox_new (GtkOrientation orientation,
gboolean homogeneous,
gint spacing)
@ -154,7 +153,7 @@ xfce_hvbox_new (GtkOrientation orientation,
*
* Set the new orientation of the #XfceHVBox container widget.
**/
void
PANEL_SYMBOL_EXPORT void
xfce_hvbox_set_orientation (XfceHVBox *hvbox,
GtkOrientation orientation)
{
@ -178,7 +177,7 @@ xfce_hvbox_set_orientation (XfceHVBox *hvbox,
*
* Returns the current orientation of the #XfceHVBox.
**/
GtkOrientation
PANEL_SYMBOL_EXPORT GtkOrientation
xfce_hvbox_get_orientation (XfceHVBox *hvbox)
{
g_return_val_if_fail (XFCE_IS_HVBOX (hvbox), GTK_ORIENTATION_HORIZONTAL);

1
libxfce4panel/xfce-hvbox.h

@ -57,6 +57,7 @@ struct _XfceHVBox
GtkOrientation orientation;
};
PANEL_SYMBOL_EXPORT
GType xfce_hvbox_get_type (void) G_GNUC_CONST;
GtkWidget *xfce_hvbox_new (GtkOrientation orientation,

10
libxfce4panel/xfce-panel-convenience.c

@ -25,7 +25,7 @@
#include <libxfce4util/libxfce4util.h>
#include <gtk/gtk.h>
#include <libxfce4panel/xfce-panel-convenience.h>
#include <libxfce4panel/libxfce4panel.h>
/**
* xfce_panel_create_button:
@ -35,7 +35,7 @@
*
* Returns: newly created #GtkButton.
**/
GtkWidget *
PANEL_SYMBOL_EXPORT GtkWidget *
xfce_panel_create_button (void)
{
GtkWidget *button = gtk_button_new ();
@ -59,7 +59,7 @@ xfce_panel_create_button (void)
*
* Returns: newly created #GtkToggleButton.
**/
GtkWidget *
PANEL_SYMBOL_EXPORT GtkWidget *
xfce_panel_create_toggle_button (void)
{
GtkWidget *button = gtk_toggle_button_new ();
@ -84,7 +84,7 @@ xfce_panel_create_toggle_button (void)
* Returns: %TRUE if the user is allowed to customize the panel, %FALSE
* otherwise.
**/
gboolean
PANEL_SYMBOL_EXPORT gboolean
xfce_panel_allow_customization (void)
{
static gboolean allow_customization = FALSE;
@ -104,7 +104,7 @@ xfce_panel_allow_customization (void)
void
PANEL_SYMBOL_EXPORT void
xfce_panel_cairo_set_source_rgba (cairo_t *cr,
GdkColor *color,
gdouble alpha)

7
libxfce4panel/xfce-panel-macros.h

@ -56,6 +56,13 @@ G_BEGIN_DECLS
#define G_PARAM_STATIC_STRINGS (G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)
#endif
/* visibility support */
#ifdef HAVE_GNUC_VISIBILITY
#define PANEL_SYMBOL_EXPORT __attribute__ ((visibility("default")))
#else
#define PANEL_SYMBOL_EXPORT
#endif
/* make api compatible with 4.4 panel */
#ifndef XFCE_DISABLE_DEPRECATED

18
libxfce4panel/xfce-panel-plugin-provider.c

@ -23,9 +23,7 @@
#include <gtk/gtk.h>
#include <libxfce4panel/xfce-panel-macros.h>
#include <libxfce4panel/xfce-panel-enums.h>
#include <libxfce4panel/xfce-panel-plugin.h>
#include <libxfce4panel/libxfce4panel.h>
#include <libxfce4panel/xfce-panel-plugin-provider.h>
@ -79,7 +77,7 @@ xfce_panel_plugin_provider_class_init (gpointer klass)
const gchar *
PANEL_SYMBOL_EXPORT const gchar *
xfce_panel_plugin_provider_get_name (XfcePanelPluginProvider *provider)
{
panel_return_val_if_fail (XFCE_IS_PANEL_PLUGIN_PROVIDER (provider), NULL);
@ -89,7 +87,7 @@ xfce_panel_plugin_provider_get_name (XfcePanelPluginProvider *provider)
const gchar *
PANEL_SYMBOL_EXPORT const gchar *
xfce_panel_plugin_provider_get_id (XfcePanelPluginProvider *provider)
{
panel_return_val_if_fail (XFCE_IS_PANEL_PLUGIN_PROVIDER (provider), NULL);
@ -99,7 +97,7 @@ xfce_panel_plugin_provider_get_id (XfcePanelPluginProvider *provider)
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_provider_set_size (XfcePanelPluginProvider *provider,
gint size)
{
@ -110,7 +108,7 @@ xfce_panel_plugin_provider_set_size (XfcePanelPluginProvider *provider,
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_provider_set_orientation (XfcePanelPluginProvider *provider,
GtkOrientation orientation)
{
@ -121,7 +119,7 @@ xfce_panel_plugin_provider_set_orientation (XfcePanelPluginProvider *provider,
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_provider_set_screen_position (XfcePanelPluginProvider *provider,
XfceScreenPosition screen_position)
{
@ -132,7 +130,7 @@ xfce_panel_plugin_provider_set_screen_position (XfcePanelPluginProvider *provide
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_provider_save (XfcePanelPluginProvider *provider)
{
panel_return_if_fail (XFCE_IS_PANEL_PLUGIN_PROVIDER (provider));
@ -142,7 +140,7 @@ xfce_panel_plugin_provider_save (XfcePanelPluginProvider *provider)
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_provider_send_signal (XfcePanelPluginProvider *provider,
XfcePanelPluginProviderSignal signal)
{

2
libxfce4panel/xfce-panel-plugin-provider.h

@ -83,7 +83,7 @@ enum _XfcePanelPluginProviderSignal
};
PANEL_SYMBOL_EXPORT
GType xfce_panel_plugin_provider_get_type (void) G_GNUC_CONST;
const gchar *xfce_panel_plugin_provider_get_name (XfcePanelPluginProvider *provider);

49
libxfce4panel/xfce-panel-plugin.c

@ -26,12 +26,11 @@
#include <glib/gstdio.h>
#include <libxfce4util/libxfce4util.h>
#include <libxfce4panel/libxfce4panel.h>
#include <libxfce4panel/libxfce4panel-marshal.h>
#include <libxfce4panel/xfce-panel-macros.h>
#include <libxfce4panel/xfce-panel-enums.h>
#include <libxfce4panel/xfce-panel-plugin.h>
#include <libxfce4panel/xfce-panel-plugin-provider.h>
#define XFCE_PANEL_PLUGIN_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), XFCE_TYPE_PANEL_PLUGIN, XfcePanelPluginPrivate))
typedef const gchar *(*ProviderToPlugin) (XfcePanelPluginProvider *provider);
@ -870,7 +869,7 @@ xfce_panel_plugin_take_window_notify (gpointer data,
*
* Return value: the name of the panel plugin.
**/
G_CONST_RETURN gchar *
PANEL_SYMBOL_EXPORT G_CONST_RETURN gchar *
xfce_panel_plugin_get_name (XfcePanelPlugin *plugin)
{
g_return_val_if_fail (XFCE_IS_PANEL_PLUGIN (plugin), NULL);
@ -886,7 +885,7 @@ xfce_panel_plugin_get_name (XfcePanelPlugin *plugin)
*
* Return value: the (translated) display name of the plugin.
**/
G_CONST_RETURN gchar *
PANEL_SYMBOL_EXPORT G_CONST_RETURN gchar *
xfce_panel_plugin_get_display_name (XfcePanelPlugin *plugin)
{
@ -907,7 +906,7 @@ xfce_panel_plugin_get_display_name (XfcePanelPlugin *plugin)
*
* Return value: the unique id of the panel plugin.
**/
G_CONST_RETURN gchar *
PANEL_SYMBOL_EXPORT G_CONST_RETURN gchar *
xfce_panel_plugin_get_id (XfcePanelPlugin *plugin)
{
g_return_val_if_fail (XFCE_IS_PANEL_PLUGIN (plugin), NULL);
@ -926,7 +925,7 @@ xfce_panel_plugin_get_id (XfcePanelPlugin *plugin)
*
* Since: 4.8.0
**/
gboolean
PANEL_SYMBOL_EXPORT gboolean
xfce_panel_plugin_get_arguments (XfcePanelPlugin *plugin,
gchar ***arguments)
{
@ -947,7 +946,7 @@ xfce_panel_plugin_get_arguments (XfcePanelPlugin *plugin,
*
* Return value: the current size of the panel.
**/
gint
PANEL_SYMBOL_EXPORT gint
xfce_panel_plugin_get_size (XfcePanelPlugin *plugin)
{
g_return_val_if_fail (XFCE_IS_PANEL_PLUGIN (plugin), -1);
@ -964,7 +963,7 @@ xfce_panel_plugin_get_size (XfcePanelPlugin *plugin)
* Return value: %TRUE when the plugin should expand,
* %FALSE otherwise.
**/
gboolean
PANEL_SYMBOL_EXPORT gboolean
xfce_panel_plugin_get_expand (XfcePanelPlugin *plugin)
{
g_return_val_if_fail (XFCE_IS_PANEL_PLUGIN (plugin), FALSE);
@ -978,7 +977,7 @@ xfce_panel_plugin_get_expand (XfcePanelPlugin *plugin)
* xfce_panel_plugin_set_expand:
* @plugin : an #XfcePanelPlugin.
**/
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_set_expand (XfcePanelPlugin *plugin,
gboolean expand)
{
@ -1007,7 +1006,7 @@ xfce_panel_plugin_set_expand (XfcePanelPlugin *plugin,
*
* Return value: the current #GtkOrientation of the panel.
**/
GtkOrientation
PANEL_SYMBOL_EXPORT GtkOrientation
xfce_panel_plugin_get_orientation (XfcePanelPlugin *plugin)
{
g_return_val_if_fail (XFCE_IS_PANEL_PLUGIN (plugin), GTK_ORIENTATION_HORIZONTAL);
@ -1023,7 +1022,7 @@ xfce_panel_plugin_get_orientation (XfcePanelPlugin *plugin)
*
* Return value: the current #XfceScreenPosition of the panel.
**/
XfceScreenPosition
PANEL_SYMBOL_EXPORT XfceScreenPosition
xfce_panel_plugin_get_screen_position (XfcePanelPlugin *plugin)
{
g_return_val_if_fail (XFCE_IS_PANEL_PLUGIN (plugin), XFCE_SCREEN_POSITION_NONE);
@ -1040,7 +1039,7 @@ xfce_panel_plugin_get_screen_position (XfcePanelPlugin *plugin)
*
* Since: 4.8.0
**/
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_take_window (XfcePanelPlugin *plugin,
GtkWindow *window)
{
@ -1059,7 +1058,7 @@ xfce_panel_plugin_take_window (XfcePanelPlugin *plugin,
* @plugin : an #XfcePanelPlugin.
* @widget : a #GtkWidget.
**/
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_add_action_widget (XfcePanelPlugin *plugin,
GtkWidget *widget)
{
@ -1077,7 +1076,7 @@ xfce_panel_plugin_add_action_widget (XfcePanelPlugin *plugin,
* @plugin : an #XfcePanelPlugin.
* @item : a #GtkMenuItem.
**/
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_menu_insert_item (XfcePanelPlugin *plugin,
GtkMenuItem *item)
{
@ -1099,7 +1098,7 @@ xfce_panel_plugin_menu_insert_item (XfcePanelPlugin *plugin,
* xfce_panel_plugin_menu_show_configure:
* @plugin : an #XfcePanelPlugin.
**/
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_menu_show_configure (XfcePanelPlugin *plugin)
{
GtkWidget *item;
@ -1122,7 +1121,7 @@ xfce_panel_plugin_menu_show_configure (XfcePanelPlugin *plugin)
* xfce_panel_plugin_menu_show_about:
* @plugin : an #XfcePanelPlugin.
**/
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_menu_show_about (XfcePanelPlugin *plugin)
{
GtkWidget *item;
@ -1145,7 +1144,7 @@ xfce_panel_plugin_menu_show_about (XfcePanelPlugin *plugin)
* xfce_panel_plugin_block_menu:
* plugin : an #XfcePanelPlugin.
**/
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_block_menu (XfcePanelPlugin *plugin)
{
g_return_if_fail (XFCE_IS_PANEL_PLUGIN (plugin));
@ -1160,7 +1159,7 @@ xfce_panel_plugin_block_menu (XfcePanelPlugin *plugin)
* xfce_panel_plugin_unblock_menu:
* plugin : an #XfcePanelPlugin.
**/
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_unblock_menu (XfcePanelPlugin *plugin)
{
g_return_if_fail (XFCE_IS_PANEL_PLUGIN (plugin));
@ -1178,7 +1177,7 @@ xfce_panel_plugin_unblock_menu (XfcePanelPlugin *plugin)
* @plugin : an #XfcePanelPlugin.
* @menu : a #GtkMenu.
**/
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_register_menu (XfcePanelPlugin *plugin,
GtkMenu *menu)
{
@ -1206,7 +1205,7 @@ xfce_panel_plugin_register_menu (XfcePanelPlugin *plugin,
*
* Since: 4.6.0
**/
GtkArrowType
PANEL_SYMBOL_EXPORT GtkArrowType
xfce_panel_plugin_arrow_type (XfcePanelPlugin *plugin)
{
XfceScreenPosition screen_position;
@ -1259,7 +1258,7 @@ xfce_panel_plugin_arrow_type (XfcePanelPlugin *plugin)
*
* Since: 4.6.0
**/
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_position_widget (XfcePanelPlugin *plugin,
GtkWidget *menu_widget,
GtkWidget *attach_widget,
@ -1352,7 +1351,7 @@ xfce_panel_plugin_position_widget (XfcePanelPlugin *plugin,
*
* Since: 4.6.0
**/
void
PANEL_SYMBOL_EXPORT void
xfce_panel_plugin_position_menu (GtkMenu *menu,
gint *x,
gint *y,
@ -1394,7 +1393,7 @@ xfce_panel_plugin_position_menu (GtkMenu *menu,
* Returns: The path to a config file or %NULL if no file was found.
* The returned string must be freed using g_free()
**/
gchar *
PANEL_SYMBOL_EXPORT gchar *
xfce_panel_plugin_lookup_rc_file (XfcePanelPlugin *plugin)
{
gchar *filename, *path;
@ -1429,7 +1428,7 @@ xfce_panel_plugin_lookup_rc_file (XfcePanelPlugin *plugin)
* Returns: The path to a config file or %NULL if no file was found.
* The returned string must be freed u sing g_free().
**/
gchar *
PANEL_SYMBOL_EXPORT gchar *
xfce_panel_plugin_save_location (XfcePanelPlugin *plugin,
gboolean create)
{

1
libxfce4panel/xfce-panel-plugin.h

@ -77,6 +77,7 @@ struct _XfcePanelPlugin
};
PANEL_SYMBOL_EXPORT
GType xfce_panel_plugin_get_type (void) G_GNUC_CONST;
const gchar *xfce_panel_plugin_get_name (XfcePanelPlugin *plugin);

6
plugins/clock/clock-analog.h

@ -32,11 +32,11 @@ typedef struct _XfceClockAnalog XfceClockAnalog;
#define XFCE_CLOCK_IS_ANALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XFCE_CLOCK_TYPE_ANALOG))
#define XFCE_CLOCK_ANALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_CLOCK_TYPE_ANALOG, XfceClockAnalogClass))
GType xfce_clock_analog_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
GType xfce_clock_analog_get_type (void) G_GNUC_CONST;
GtkWidget *xfce_clock_analog_new (void) G_GNUC_MALLOC G_GNUC_INTERNAL;
GtkWidget *xfce_clock_analog_new (void) G_GNUC_MALLOC;
gboolean xfce_clock_analog_update (gpointer user_data) G_GNUC_INTERNAL;
gboolean xfce_clock_analog_update (gpointer user_data);
G_END_DECLS

6
plugins/clock/clock-binary.h

@ -32,11 +32,11 @@ typedef struct _XfceClockBinary XfceClockBinary;
#define XFCE_CLOCK_IS_BINARY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XFCE_CLOCK_TYPE_BINARY))
#define XFCE_CLOCK_BINARY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_CLOCK_TYPE_BINARY, XfceClockBinaryClass))
GType xfce_clock_binary_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
GType xfce_clock_binary_get_type (void) G_GNUC_CONST;
GtkWidget *xfce_clock_binary_new (void) G_GNUC_MALLOC G_GNUC_INTERNAL;
GtkWidget *xfce_clock_binary_new (void) G_GNUC_MALLOC;
gboolean xfce_clock_binary_update (gpointer user_data) G_GNUC_INTERNAL;
gboolean xfce_clock_binary_update (gpointer user_data);
G_END_DECLS

2
plugins/clock/clock-dialog.h

@ -24,7 +24,7 @@
G_BEGIN_DECLS
void xfce_clock_dialog_show (ClockPlugin *clock) G_GNUC_INTERNAL;
void xfce_clock_dialog_show (ClockPlugin *clock);
G_END_DECLS

6
plugins/clock/clock-digital.h

@ -32,11 +32,11 @@ typedef struct _XfceClockDigital XfceClockDigital;
#define XFCE_CLOCK_IS_DIGITAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XFCE_CLOCK_TYPE_DIGITAL))
#define XFCE_CLOCK_DIGITAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_CLOCK_TYPE_DIGITAL, XfceClockDigitalClass))
GType xfce_clock_digital_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
GType xfce_clock_digital_get_type (void) G_GNUC_CONST;
GtkWidget *xfce_clock_digital_new (void) G_GNUC_MALLOC G_GNUC_INTERNAL;
GtkWidget *xfce_clock_digital_new (void) G_GNUC_MALLOC;
gboolean xfce_clock_digital_update (gpointer user_data) G_GNUC_INTERNAL;
gboolean xfce_clock_digital_update (gpointer user_data);
G_END_DECLS

6
plugins/clock/clock-lcd.h

@ -32,11 +32,11 @@ typedef struct _XfceClockLcd XfceClockLcd;
#define XFCE_CLOCK_IS_LCD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XFCE_CLOCK_TYPE_LCD))
#define XFCE_CLOCK_LCD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_CLOCK_TYPE_LCD, XfceClockLcdClass))
GType xfce_clock_lcd_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
GType xfce_clock_lcd_get_type (void) G_GNUC_CONST;
GtkWidget *xfce_clock_lcd_new (void) G_GNUC_MALLOC G_GNUC_INTERNAL;
GtkWidget *xfce_clock_lcd_new (void) G_GNUC_MALLOC;
gboolean xfce_clock_lcd_update (gpointer user_data) G_GNUC_INTERNAL;
gboolean xfce_clock_lcd_update (gpointer user_data);
G_END_DECLS

14
plugins/clock/clock.h

@ -84,21 +84,21 @@ struct _ClockPlugin
void xfce_clock_util_get_localtime (struct tm *tm) G_GNUC_INTERNAL;
void xfce_clock_util_get_localtime (struct tm *tm);
gchar *xfce_clock_util_strdup_strftime (const gchar *format,
const struct tm *tm) G_GNUC_MALLOC G_GNUC_INTERNAL;
const struct tm *tm) G_GNUC_MALLOC;
void xfce_clock_tooltip_sync (ClockPlugin *clock) G_GNUC_INTERNAL;
void xfce_clock_tooltip_sync (ClockPlugin *clock);
void xfce_clock_widget_sync (ClockPlugin *clock) G_GNUC_INTERNAL;
void xfce_clock_widget_sync (ClockPlugin *clock);
void xfce_clock_widget_update_settings (ClockPlugin *clock) G_GNUC_INTERNAL;
void xfce_clock_widget_update_settings (ClockPlugin *clock);
void xfce_clock_widget_set_mode (ClockPlugin *clock) G_GNUC_INTERNAL;
void xfce_clock_widget_set_mode (ClockPlugin *clock);
gboolean xfce_clock_plugin_set_size (ClockPlugin *clock,
guint size) G_GNUC_INTERNAL;
guint size);
G_END_DECLS

4
plugins/launcher/launcher-dialog.h

@ -21,8 +21,8 @@
#ifndef __XFCE_PANEL_LAUNCHER_DIALOG_H__
#define __XFCE_PANEL_LAUNCHER_DIALOG_H__
gboolean launcher_dialog_read_desktop_file (const gchar *path, LauncherEntry *entry) G_GNUC_INTERNAL;
gboolean launcher_dialog_read_desktop_file (const gchar *path, LauncherEntry *entry);
void launcher_dialog_show (LauncherPlugin *launcher) G_GNUC_INTERNAL;
void launcher_dialog_show (LauncherPlugin *launcher);
#endif /* !__XFCE_PANEL_LAUNCHER_DIALOG_H__ */

4
plugins/launcher/launcher-exec.h

@ -22,8 +22,8 @@
void launcher_execute (GdkScreen *screen,
LauncherEntry *entry,
GSList *file_list) G_GNUC_INTERNAL;
GSList *file_list);
void launcher_execute_from_clipboard (GdkScreen *screen,
LauncherEntry *entry) G_GNUC_INTERNAL;
LauncherEntry *entry);
#endif /* !__XFCE_PANEL_EXEC_H__ */

14
plugins/launcher/launcher.h

@ -109,16 +109,16 @@ static const GtkTargetEntry drop_targets[] =
GSList *launcher_utility_filenames_from_selection_data (GtkSelectionData *selection_data) G_GNUC_MALLOC G_GNUC_INTERNAL;
GSList *launcher_utility_filenames_from_selection_data (GtkSelectionData *selection_data) G_GNUC_MALLOC;
GdkPixbuf *launcher_utility_load_pixbuf (GdkScreen *screen,
const gchar *name,
guint size) G_GNUC_MALLOC G_GNUC_INTERNAL;
LauncherEntry *launcher_entry_new (void) G_GNUC_MALLOC G_GNUC_INTERNAL;
guint size) G_GNUC_MALLOC;
LauncherEntry *launcher_entry_new (void) G_GNUC_MALLOC;
void launcher_entry_free (LauncherEntry *entry,
LauncherPlugin *launcher) G_GNUC_INTERNAL;
LauncherPlugin *launcher);
void launcher_plugin_rebuild (LauncherPlugin *launcher,
gboolean update_icon) G_GNUC_INTERNAL;
void launcher_plugin_read (LauncherPlugin *launcher) G_GNUC_INTERNAL;
void launcher_plugin_save (LauncherPlugin *launcher) G_GNUC_INTERNAL;
gboolean update_icon);
void launcher_plugin_read (LauncherPlugin *launcher);
void launcher_plugin_save (LauncherPlugin *launcher);
#endif /* !__XFCE_PANEL_LAUNCHER_H__ */

2
plugins/systray/Makefile.am

@ -101,7 +101,7 @@ stamp-xfce-tray-marshal.h: $(srcdir)/xfce-tray-marshal.list Makefile
( cd $(srcdir) && glib-genmarshal \
--prefix=_xfce_tray_marshal \
--header xfce-tray-marshal.list \
| sed -e 's/marshal_data);$$/marshal_data) G_GNUC_INTERNAL;/' ) >> xgen-xtmh \
| sed -e 's/marshal_data);$$/marshal_data);/' ) >> xgen-xtmh \
&& ( cmp -s xgen-xtmh xfce-tray-marshal.h || cp xgen-xtmh xfce-tray-marshal.h ) \
&& rm -f xgen-xtmh \
&& echo timestamp > $(@F)

18
plugins/systray/xfce-tray-manager.h

@ -51,26 +51,26 @@ enum
GType xfce_tray_manager_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
GType xfce_tray_manager_get_type (void) G_GNUC_CONST;
GQuark xfce_tray_manager_error_quark (void) G_GNUC_INTERNAL;
GQuark xfce_tray_manager_error_quark (void);
XfceTrayManager *xfce_tray_manager_new (void) G_GNUC_MALLOC G_GNUC_INTERNAL;
XfceTrayManager *xfce_tray_manager_new (void) G_GNUC_MALLOC;
gboolean xfce_tray_manager_check_running (GdkScreen *screen) G_GNUC_INTERNAL;
gboolean xfce_tray_manager_check_running (GdkScreen *screen);
gboolean xfce_tray_manager_register (XfceTrayManager *manager,
GdkScreen *screen,
GError **error) G_GNUC_INTERNAL;
GError **error);
void xfce_tray_manager_unregister (XfceTrayManager *manager) G_GNUC_INTERNAL;
void xfce_tray_manager_unregister (XfceTrayManager *manager);
GtkOrientation xfce_tray_manager_get_orientation (XfceTrayManager *manager) G_GNUC_INTERNAL;
GtkOrientation xfce_tray_manager_get_orientation (XfceTrayManager *manager);
void xfce_tray_manager_set_orientation (XfceTrayManager *manager,
GtkOrientation orientation) G_GNUC_INTERNAL;
GtkOrientation orientation);
gchar *xfce_tray_manager_get_application_name (GtkWidget *socket) G_GNUC_MALLOC G_GNUC_INTERNAL;
gchar *xfce_tray_manager_get_application_name (GtkWidget *socket) G_GNUC_MALLOC;
#endif /* !__XFCE_TRAY_MANAGER_H__ */

24
plugins/systray/xfce-tray-widget.h

@ -33,37 +33,37 @@ typedef struct _XfceTrayWidgetChild XfceTrayWidgetChild;
#define XFCE_IS_TRAY_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFCE_TYPE_TRAY_WIDGET))
#define XFCE_TRAY_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_TYPE_TRAY_WIDGET, XfceTrayWidgetClass))
GType xfce_tray_widget_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
GType xfce_tray_widget_get_type (void) G_GNUC_CONST;
GtkWidget *xfce_tray_widget_new (void) G_GNUC_MALLOC G_GNUC_INTERNAL;
GtkWidget *xfce_tray_widget_new (void) G_GNUC_MALLOC;
void xfce_tray_widget_add_with_name (XfceTrayWidget *tray,
GtkWidget *child,
const gchar *name) G_GNUC_INTERNAL;
const gchar *name);
void xfce_tray_widget_set_arrow_type (XfceTrayWidget *tray,
GtkArrowType arrow_type) G_GNUC_INTERNAL;
GtkArrowType arrow_type);
GtkArrowType xfce_tray_widget_get_arrow_type (XfceTrayWidget *tray) G_GNUC_INTERNAL;
GtkArrowType xfce_tray_widget_get_arrow_type (XfceTrayWidget *tray);
void xfce_tray_widget_set_rows (XfceTrayWidget *tray,
gint rows) G_GNUC_INTERNAL;
gint rows);
gint xfce_tray_widget_get_rows (XfceTrayWidget *tray) G_GNUC_INTERNAL;
gint xfce_tray_widget_get_rows (XfceTrayWidget *tray);
void xfce_tray_widget_name_add (XfceTrayWidget *tray,
const gchar *name,
gboolean hidden) G_GNUC_INTERNAL;
gboolean hidden);
void xfce_tray_widget_name_update (XfceTrayWidget *tray,
const gchar *name,
gboolean hidden) G_GNUC_INTERNAL;
gboolean hidden);
gboolean xfce_tray_widget_name_hidden (XfceTrayWidget *tray,
const gchar *name) G_GNUC_INTERNAL;
const gchar *name);
GList *xfce_tray_widget_name_list (XfceTrayWidget *tray) G_GNUC_MALLOC G_GNUC_INTERNAL;
GList *xfce_tray_widget_name_list (XfceTrayWidget *tray) G_GNUC_MALLOC;
void xfce_tray_widget_clear_name_list (XfceTrayWidget *tray) G_GNUC_INTERNAL;
void xfce_tray_widget_clear_name_list (XfceTrayWidget *tray);
#endif /* !__XFCE_TRAY_WIDGET_H__ */

2
plugins/tasklist.new/tasklist-box.h

@ -32,7 +32,7 @@ typedef struct _TasklistBox TasklistBox;
#define TASKLIST_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TASKLIST_TYPE_BOX))
#define TASKLIST_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TASKLIST_TYPE_BOX, TasklistBoxClass))
GType tasklist_box_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
GType tasklist_box_get_type (void) G_GNUC_CONST;
G_END_DECLS

2
plugins/tasklist.new/tasklist-plugin.h

@ -32,7 +32,7 @@ typedef struct _TasklistPlugin TasklistPlugin;
#define TASKLIST_IS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TASKLIST_TYPE_PLUGIN))
#define TASKLIST_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TASKLIST_TYPE_PLUGIN, TasklistPluginClass))
GType tasklist_plugin_get_type (void) G_GNUC_CONST G_GNUC_INTERNAL;
GType tasklist_plugin_get_type (void) G_GNUC_CONST;
G_END_DECLS

2
plugins/tasklist/tasklist-dialogs.h

@ -20,6 +20,6 @@
#ifndef __TASKLIST_DIALOGS_H__
#define __TASKLIST_DIALOGS_H__
void tasklist_dialogs_configure (TasklistPlugin *tasklist) G_GNUC_INTERNAL;
void tasklist_dialogs_configure (TasklistPlugin *tasklist);
#endif /* !__TASKLIST_DIALOGS_H__ */

4
plugins/tasklist/tasklist.h

@ -58,7 +58,7 @@ struct _TasklistPlugin
};
void tasklist_plugin_write (TasklistPlugin *tasklist) G_GNUC_INTERNAL;
gboolean tasklist_using_xinerama (XfcePanelPlugin *panel_plugin) G_GNUC_INTERNAL;
void tasklist_plugin_write (TasklistPlugin *tasklist);
gboolean tasklist_using_xinerama (XfcePanelPlugin *panel_plugin);
#endif /* !__TASKLIST_H__ */

Loading…
Cancel
Save