From 8281e9833a31d8731e8dd405fea2b1138dcc4ff8 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 27 Oct 2021 17:46:47 +0200 Subject: Use a blank line at most --- accessx-status/src/applet.c | 1 - battstat/acpi-linux.c | 1 - battstat/apmlib/apmlib.c | 7 ------- battstat/battstat-upower.c | 1 - battstat/battstat_applet.c | 3 --- battstat/power-management.c | 2 -- charpick/charpick.c | 3 --- cpufreq/src/cpufreq-applet.c | 1 - cpufreq/src/cpufreq-prefs.c | 1 - cpufreq/src/cpufreq-selector.c | 1 - cpufreq/src/cpufreq-selector/cpufreq-selector-libcpufreq.h | 1 - cpufreq/src/cpufreq-selector/cpufreq-selector-service.c | 1 - cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.h | 1 - cpufreq/src/cpufreq-selector/cpufreq-selector.h | 1 - cpufreq/src/cpufreq-selector/main.c | 1 - drivemount/src/drive-list.c | 1 - mateweather/src/main.c | 1 - mateweather/src/mateweather-applet.c | 2 -- mateweather/src/mateweather-pref.c | 2 -- mateweather/src/mateweather-pref.h | 3 --- multiload/src/linux-proc.c | 1 - multiload/src/load-graph.c | 1 - multiload/src/main.c | 1 - multiload/src/properties.c | 3 --- netspeed/src/backend.c | 2 -- netspeed/src/netspeed.c | 1 - trashapplet/src/trashapplet.c | 1 - trashapplet/src/xstuff.c | 1 - 28 files changed, 46 deletions(-) diff --git a/accessx-status/src/applet.c b/accessx-status/src/applet.c index cba2cb86..c24a6561 100644 --- a/accessx-status/src/applet.c +++ b/accessx-status/src/applet.c @@ -170,7 +170,6 @@ dialog_cb (GtkAction* action, return; } - screen = gtk_widget_get_screen (GTK_WIDGET (sapplet->applet)); appinfo = g_app_info_create_from_commandline ("mate-keyboard-properties --a11y", _("Open the keyboard preferences dialog"), diff --git a/battstat/acpi-linux.c b/battstat/acpi-linux.c index c383bd2e..31daad5d 100644 --- a/battstat/acpi-linux.c +++ b/battstat/acpi-linux.c @@ -247,7 +247,6 @@ update_battery_info (struct acpi_info* acpiinfo) return TRUE; } - /* Initializes the ACPI-reading subsystem by opening a file * descriptor to the ACPI event file. This can either be the * /proc/acpi/event exported by the kernel, or if it's already diff --git a/battstat/apmlib/apmlib.c b/battstat/apmlib/apmlib.c index d7125f74..f0147ae1 100644 --- a/battstat/apmlib/apmlib.c +++ b/battstat/apmlib/apmlib.c @@ -47,7 +47,6 @@ apm_exists (void) return apm_read (&i); } - /* Read information from /proc/apm. Return 0 on success, 1 if APM not * installed, 2 if APM installed, but old version. */ @@ -167,7 +166,6 @@ apm_read (apm_info * i) return retcode; } - /* Lookup the device number for the apm_bios device. */ dev_t apm_dev (void) { @@ -207,7 +205,6 @@ dev_t apm_dev (void) return cached = -1; } - /* Return a file descriptor for the apm_bios device, or -1 if there is an * error. Is this method secure? Should we make the device in /dev * instead of /tmp? @@ -242,7 +239,6 @@ apm_open (void) return -1; } - /* Given a file descriptor for the apm_bios device, close it. */ int apm_close (int fd) @@ -278,7 +274,6 @@ apm_get_events (int fd, int timeout, apm_event_t * events, int n) return read (fd, events, n * sizeof (apm_event_t)) / sizeof (apm_event_t); } - /* Try to set the Power State to Suspend. */ int apm_suspend (int fd) @@ -287,7 +282,6 @@ apm_suspend (int fd) return ioctl (fd, APM_IOC_SUSPEND, NULL); } - /* Try to set the Power State to Standby. */ int apm_standby (int fd) @@ -425,7 +419,6 @@ apm_event_name (apm_event_t event) return "Unknown"; } - /* This is a convenience function that has nothing to do with APM. It just * formats a time nicely. If you don't like this format, then write your * own. diff --git a/battstat/battstat-upower.c b/battstat/battstat-upower.c index da830c2b..5ba9a295 100644 --- a/battstat/battstat-upower.c +++ b/battstat/battstat-upower.c @@ -33,7 +33,6 @@ static UpClient *upc; static void (*status_updated_callback) (void); - /* status_updated_callback () can not be called directly because at the time of * the device-remove signal, the device is not actually removed from the list * of devices known to the up_client object (see libupower-glib/up-client.c in diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c index ce1598dc..3382a540 100644 --- a/battstat/battstat_applet.c +++ b/battstat/battstat_applet.c @@ -648,7 +648,6 @@ check_for_updates (gpointer data) } } - possibly_update_status_icon (battstat, &info); if (!info.on_ac_power && @@ -798,7 +797,6 @@ battstat_show_help (ProgressData *battstat, } } - /* Called when the user selects the 'help' menu item. */ static void @@ -1210,7 +1208,6 @@ battstat_applet_factory (MatePanelApplet *applet, return retval; } - MATE_PANEL_APPLET_OUT_PROCESS_FACTORY ("BattstatAppletFactory", PANEL_TYPE_APPLET, "battstat", diff --git a/battstat/power-management.c b/battstat/power-management.c index 5c4145c6..cd0e3f33 100644 --- a/battstat/power-management.c +++ b/battstat/power-management.c @@ -78,7 +78,6 @@ static int using_upower; * the problem might be. This error message is not to be freed. */ - /* Uncomment the following to enable a 'testing' backend. When you add the applet to the panel a window will appear that allows you to manually change the battery status values for testing purposes. @@ -133,7 +132,6 @@ initialise_test (void) G_CALLBACK (test_update_integer), &test_status.minutes); gtk_box_pack_start (box, w, TRUE, TRUE, 0); - w = gtk_toggle_button_new_with_label ("on_ac_power"); g_signal_connect (w, "toggled", G_CALLBACK (test_update_boolean), diff --git a/charpick/charpick.c b/charpick/charpick.c index acc4a408..48c68b57 100644 --- a/charpick/charpick.c +++ b/charpick/charpick.c @@ -15,7 +15,6 @@ /* The comment for each char list has the html entity names of the chars */ /* All gunicar codes should end in 0 */ - /* This is the default list used when starting charpick the first time */ /* aacute, agrave, eacute, iacute, oacute, frac12, copy*/ /* static const gchar *def_list = "áàéíñóœ©"; */ @@ -570,8 +569,6 @@ queue_rebuild (charpick_data *curr_data) g_source_set_name_by_id (curr_data->rebuild_id, "[charpick] rebuild_cb"); } - - static void applet_size_allocate (MatePanelApplet *applet, GtkAllocation *allocation, diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c index adec4be1..351d6136 100644 --- a/cpufreq/src/cpufreq-applet.c +++ b/cpufreq/src/cpufreq-applet.c @@ -720,7 +720,6 @@ cpufreq_applet_refresh (CPUFreqApplet *applet) horizontal = ((applet->orient == MATE_PANEL_APPLET_ORIENT_UP) || (applet->orient == MATE_PANEL_APPLET_ORIENT_DOWN)); - /* We want a fixed label size, the biggest */ gtk_widget_get_preferred_width (GTK_WIDGET (applet->label), &label_size, NULL); diff --git a/cpufreq/src/cpufreq-prefs.c b/cpufreq/src/cpufreq-prefs.c index f0e60bf0..c767861e 100644 --- a/cpufreq/src/cpufreq-prefs.c +++ b/cpufreq/src/cpufreq-prefs.c @@ -68,7 +68,6 @@ static void cpufreq_prefs_get_property (GObject *object, static void cpufreq_prefs_dialog_update_sensitivity (CPUFreqPrefs *prefs); - G_DEFINE_TYPE_WITH_PRIVATE (CPUFreqPrefs, cpufreq_prefs, G_TYPE_OBJECT) static void diff --git a/cpufreq/src/cpufreq-selector.c b/cpufreq/src/cpufreq-selector.c index e157369d..01fe59b5 100644 --- a/cpufreq/src/cpufreq-selector.c +++ b/cpufreq/src/cpufreq-selector.c @@ -118,7 +118,6 @@ cpufreq_selector_connect_to_system_bus (CPUFreqSelector *selector, return (selector->system_bus != NULL); } - static gboolean cpufreq_selector_create_proxy (CPUFreqSelector *selector, GError **error) diff --git a/cpufreq/src/cpufreq-selector/cpufreq-selector-libcpufreq.h b/cpufreq/src/cpufreq-selector/cpufreq-selector-libcpufreq.h index 90127579..c15c875f 100644 --- a/cpufreq/src/cpufreq-selector/cpufreq-selector-libcpufreq.h +++ b/cpufreq/src/cpufreq-selector/cpufreq-selector-libcpufreq.h @@ -52,7 +52,6 @@ struct _CPUFreqSelectorLibcpufreqClass { CPUFreqSelectorClass parent_class; }; - GType cpufreq_selector_libcpufreq_get_type (void) G_GNUC_CONST; CPUFreqSelector *cpufreq_selector_libcpufreq_new (guint cpu); diff --git a/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c b/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c index 6ce03984..cad5c5a5 100644 --- a/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c +++ b/cpufreq/src/cpufreq-selector/cpufreq-selector-service.c @@ -438,7 +438,6 @@ cpufreq_selector_service_set_governor (CPUFreqSelectorService *service, return TRUE; } - gboolean cpufreq_selector_service_can_set (CPUFreqSelectorService *service, DBusGMethodInvocation *context) diff --git a/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.h b/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.h index f0b90555..6fb9cab2 100644 --- a/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.h +++ b/cpufreq/src/cpufreq-selector/cpufreq-selector-sysfs.h @@ -49,7 +49,6 @@ struct _CPUFreqSelectorSysfsClass { CPUFreqSelectorClass parent_class; }; - GType cpufreq_selector_sysfs_get_type (void) G_GNUC_CONST; CPUFreqSelector *cpufreq_selector_sysfs_new (guint cpu); diff --git a/cpufreq/src/cpufreq-selector/cpufreq-selector.h b/cpufreq/src/cpufreq-selector/cpufreq-selector.h index 05489e26..b1fc5162 100644 --- a/cpufreq/src/cpufreq-selector/cpufreq-selector.h +++ b/cpufreq/src/cpufreq-selector/cpufreq-selector.h @@ -60,7 +60,6 @@ struct _CPUFreqSelectorClass { GError **error); }; - GType cpufreq_selector_get_type (void) G_GNUC_CONST; GQuark cpufreq_selector_error_quark (void) G_GNUC_CONST; diff --git a/cpufreq/src/cpufreq-selector/main.c b/cpufreq/src/cpufreq-selector/main.c index 749653db..4993c430 100644 --- a/cpufreq/src/cpufreq-selector/main.c +++ b/cpufreq/src/cpufreq-selector/main.c @@ -33,7 +33,6 @@ #endif #include "cpufreq-selector-factory.h" - static gint cpu = 0; static gchar *governor = NULL; static gulong frequency = 0; diff --git a/drivemount/src/drive-list.c b/drivemount/src/drive-list.c index b1840051..c8a0b2f7 100644 --- a/drivemount/src/drive-list.c +++ b/drivemount/src/drive-list.c @@ -464,7 +464,6 @@ set_icon_size (gpointer key, drive_button_set_size (button, self->icon_size); } - void drive_list_set_panel_size (DriveList *self, int panel_size) diff --git a/mateweather/src/main.c b/mateweather/src/main.c index de8d8436..f472fa23 100644 --- a/mateweather/src/main.c +++ b/mateweather/src/main.c @@ -26,7 +26,6 @@ #include "mateweather-dialog.h" #include "mateweather-applet.h" - static gboolean mateweather_applet_new(MatePanelApplet* applet, const gchar* iid, gpointer data) { MateWeatherApplet* gw_applet; diff --git a/mateweather/src/mateweather-applet.c b/mateweather/src/mateweather-applet.c index 3165607e..098b620d 100644 --- a/mateweather/src/mateweather-applet.c +++ b/mateweather/src/mateweather-applet.c @@ -105,7 +105,6 @@ static void update_cb (GtkAction *action, mateweather_update (gw_applet); } - static const GtkActionEntry weather_applet_menu_actions [] = { { "Details", NULL, N_("_Details"), NULL, NULL, @@ -523,7 +522,6 @@ gint suncalc_timeout_cb (gpointer data) return 0; /* Do not repeat timeout (will be reset by update_finish) */ } - void mateweather_update (MateWeatherApplet *gw_applet) { WeatherPrefs prefs; diff --git a/mateweather/src/mateweather-pref.c b/mateweather/src/mateweather-pref.c index 12ef8864..d7ffe868 100644 --- a/mateweather/src/mateweather-pref.c +++ b/mateweather/src/mateweather-pref.c @@ -798,7 +798,6 @@ on_response (GtkDialog *dialog, } } - static void mateweather_pref_create (MateWeatherPref* pref) { @@ -834,7 +833,6 @@ mateweather_pref_create (MateWeatherPref* pref) GtkWidget* pref_find_hbox; GtkWidget* image; - g_object_set (pref, "destroy-with-parent", TRUE, NULL); gtk_window_set_title (GTK_WINDOW (pref), _("Weather Preferences")); gtk_dialog_add_buttons (GTK_DIALOG (pref), "gtk-close", GTK_RESPONSE_CLOSE, "gtk-help", GTK_RESPONSE_HELP, NULL); diff --git a/mateweather/src/mateweather-pref.h b/mateweather/src/mateweather-pref.h index f3cc901b..c2470a78 100644 --- a/mateweather/src/mateweather-pref.h +++ b/mateweather/src/mateweather-pref.h @@ -40,7 +40,6 @@ struct _MateWeatherPref MateWeatherPrefPrivate *priv; }; - struct _MateWeatherPrefClass { GtkDialogClass parent_class; @@ -49,10 +48,8 @@ struct _MateWeatherPrefClass GType mateweather_pref_get_type (void); GtkWidget *mateweather_pref_new (MateWeatherApplet *applet); - void set_access_namedesc (GtkWidget *widget, const gchar *name, const gchar *desc); - G_END_DECLS #endif /* __MATEWEATHER_PREF_H */ diff --git a/multiload/src/linux-proc.c b/multiload/src/linux-proc.c index 10b3ddd5..f5549f67 100644 --- a/multiload/src/linux-proc.c +++ b/multiload/src/linux-proc.c @@ -109,7 +109,6 @@ GetDiskLoad (guint64 Maximum, multiload = g->multiload; - if(first_call) { autoscaler_init (&scaler, g->speed, 500); diff --git a/multiload/src/load-graph.c b/multiload/src/load-graph.c index 23fbacde..67fc09cd 100644 --- a/multiload/src/load-graph.c +++ b/multiload/src/load-graph.c @@ -43,7 +43,6 @@ shift_right(LoadGraph *g) g->data[0] = last_data; } - /* Redraws the backing pixmap for the load graph and updates the window */ static void load_graph_draw (LoadGraph *g) diff --git a/multiload/src/main.c b/multiload/src/main.c index eca780a5..1f2ac814 100644 --- a/multiload/src/main.c +++ b/multiload/src/main.c @@ -222,7 +222,6 @@ multiload_destroy_cb(GtkWidget *widget, gpointer data) return; } - static gboolean multiload_button_press_event_cb (GtkWidget *widget, GdkEventButton *event, MultiloadApplet *ma) { diff --git a/multiload/src/properties.c b/multiload/src/properties.c index 37cc8bf2..7f237370 100644 --- a/multiload/src/properties.c +++ b/multiload/src/properties.c @@ -32,7 +32,6 @@ hard_set_sensitive (GtkWidget *w, gboolean sensitivity) GINT_TO_POINTER ( ! sensitivity)); } - /* set sensitive, but always insensitive if NEVER_SENSITIVE is set */ static void soft_set_sensitive (GtkWidget *w, gboolean sensitivity) @@ -147,7 +146,6 @@ on_net_threshold1_spin_button_value_changed (GtkSpinButton *spin_button, g_settings_set_uint64 (ma->settings, KEY_NET_THRESHOLD1, ma->net_threshold1); } - static void on_net_threshold2_spin_button_value_changed (GtkSpinButton *spin_button, gpointer user_data) @@ -167,7 +165,6 @@ on_net_threshold2_spin_button_value_changed (GtkSpinButton *spin_button, g_settings_set_uint64 (ma->settings, KEY_NET_THRESHOLD2, ma->net_threshold2); } - static void on_net_threshold3_spin_button_value_changed (GtkSpinButton *spin_button, gpointer user_data) diff --git a/netspeed/src/backend.c b/netspeed/src/backend.c index 2888f876..b017bb72 100644 --- a/netspeed/src/backend.c +++ b/netspeed/src/backend.c @@ -88,7 +88,6 @@ is_dummy_device (const char* device) return FALSE; } - /* Check for all available devices. This really should be * portable for at least all plattforms using the gnu c lib * TODO: drop it, use glibtop_get_netlist directly / gchar** @@ -505,7 +504,6 @@ out_handle_destroy: return err; } - static void nl80211_cleanup (struct nl80211_state *state) { diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c index bb428765..5982059e 100644 --- a/netspeed/src/netspeed.c +++ b/netspeed/src/netspeed.c @@ -1438,7 +1438,6 @@ update_tooltip (NetspeedApplet *netspeed) g_string_free (tooltip, TRUE); } - static gboolean netspeed_applet_enter_notify_event (GtkWidget *widget, GdkEventCrossing *event) diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c index 6f4b7f0f..eccf7c3d 100644 --- a/trashapplet/src/trashapplet.c +++ b/trashapplet/src/trashapplet.c @@ -402,7 +402,6 @@ trash_applet_show_help (GtkAction *action, } } - static void trash_applet_show_about (GtkAction *action, TrashApplet *applet) diff --git a/trashapplet/src/xstuff.c b/trashapplet/src/xstuff.c index 91c8c8fe..fa990eb3 100644 --- a/trashapplet/src/xstuff.c +++ b/trashapplet/src/xstuff.c @@ -22,7 +22,6 @@ #include "xstuff.h" - /* Zoom animation */ #define MINIATURIZE_ANIMATION_FRAMES_Z 1 #define MINIATURIZE_ANIMATION_STEPS_Z 6 -- cgit v1.2.1