[gnome-applets] window-buttons: fix -Wmissing-prototypes warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] window-buttons: fix -Wmissing-prototypes warnings
- Date: Tue, 10 Mar 2020 18:21:21 +0000 (UTC)
commit 8c5be6a15e032395a217fbb16a7c649d7078795b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Mar 10 19:41:06 2020 +0200
window-buttons: fix -Wmissing-prototypes warnings
window-buttons/preferences.c | 6 +++++-
window-buttons/preferences.h | 4 ++++
window-buttons/windowbuttons.c | 8 +++++---
3 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/window-buttons/preferences.c b/window-buttons/preferences.c
index eed29f1ac..c38f81b1b 100755
--- a/window-buttons/preferences.c
+++ b/window-buttons/preferences.c
@@ -515,7 +515,11 @@ properties_close (GtkButton *object,
wbapplet->window_prefs = NULL;
}
-void properties_cb (GSimpleAction *action, GVariant *parameter, gpointer user_data) {
+void
+wb_applet_properties_cb (GSimpleAction *action,
+ GVariant *parameter,
+ gpointer user_data)
+{
WBApplet *wbapplet;
GtkWidget ***btn;
ImageOpenData ***iod;
diff --git a/window-buttons/preferences.h b/window-buttons/preferences.h
index 408f75930..2dcd6a0d9 100644
--- a/window-buttons/preferences.h
+++ b/window-buttons/preferences.h
@@ -30,3 +30,7 @@ typedef struct {
WBApplet *wbapplet;
gushort button_id;
} CheckBoxData;
+
+void wb_applet_properties_cb (GSimpleAction *action,
+ GVariant *parameter,
+ gpointer user_data);
diff --git a/window-buttons/windowbuttons.c b/window-buttons/windowbuttons.c
index bf20acb78..142679260 100755
--- a/window-buttons/windowbuttons.c
+++ b/window-buttons/windowbuttons.c
@@ -19,6 +19,7 @@
*/
#include "windowbuttons.h"
+#include "preferences.h"
/* Prototypes */
//static void applet_change_background (PanelApplet *, PanelAppletBackgroundType, GdkColor *, GdkPixmap *);
@@ -30,7 +31,6 @@ static void viewports_changed (WnckScreen *, WBApplet *);
static void window_closed (WnckScreen *, WnckWindow *, WBApplet *);
static void window_opened (WnckScreen *, WnckWindow *, WBApplet *);
static void about_cb ( GSimpleAction *, GVariant *, gpointer );
-void properties_cb ( GSimpleAction *, GVariant *, gpointer );
static gboolean hover_enter (GtkWidget *, GdkEventCrossing *, WBApplet *);
static gboolean hover_leave (GtkWidget *, GdkEventCrossing *, WBApplet *);
static gboolean button_press (GtkWidget *, GdkEventButton *, WBApplet *);
@@ -65,7 +65,7 @@ static const gchar windowbuttons_menu_items [] =
"</section>";
static const GActionEntry windowbuttons_menu_actions [] = {
- { "preferences", properties_cb, NULL, NULL, NULL },
+ { "preferences", wb_applet_properties_cb, NULL, NULL, NULL },
{ "about", about_cb, NULL, NULL, NULL }
};
@@ -252,7 +252,9 @@ getImageState (WBButtonState button_state)
}
/* Updates the images according to preferences and the umaxed window situation */
-void updateImages (WBApplet *wbapplet) {
+static void
+updateImages (WBApplet *wbapplet)
+{
WnckWindow *controlledwindow;
gint i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]