summaryrefslogtreecommitdiff
path: root/thunar
diff options
context:
space:
mode:
authorSergios - Anestis Kefalidis <sergioskefalidis@gmail.com>2022-03-10 14:24:23 +0200
committerAlexander Schwinn <alexxcons@xfce.org>2022-03-10 17:16:35 +0000
commite58b992bc3092e3b3db2317067ac9d55ae88e04e (patch)
treef9ae89ffd876fed75517f15543bc62623c03ca08 /thunar
parent645a607b6818c53f2b38082c598a3a56d5cd9e13 (diff)
downloadthunar-e58b992bc3092e3b3db2317067ac9d55ae88e04e.tar.gz
Simplify function signatures.
Diffstat (limited to 'thunar')
-rw-r--r--thunar/thunar-window.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index cc827a9e..5bbf93a7 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -280,13 +280,13 @@ static void thunar_window_binding_create (ThunarWindow
GBindingFlags flags);
static gboolean thunar_window_history_clicked (GtkWidget *button,
GdkEventButton *event,
- GtkWidget *window);
+ ThunarWindow *window);
static gboolean thunar_window_open_parent_clicked (GtkWidget *button,
GdkEventButton *event,
- GtkWidget *window);
+ ThunarWindow *window);
static gboolean thunar_window_open_home_clicked (GtkWidget *button,
GdkEventButton *event,
- GtkWidget *window);
+ ThunarWindow *window);
static gboolean thunar_window_button_press_event (GtkWidget *view,
GdkEventButton *event,
ThunarWindow *window);
@@ -5047,16 +5047,14 @@ thunar_window_button_press_event (GtkWidget *view,
static gboolean
thunar_window_history_clicked (GtkWidget *button,
GdkEventButton *event,
- GtkWidget *data)
+ ThunarWindow *window)
{
ThunarHistory *history = NULL;
- ThunarWindow *window = NULL;
ThunarFile *directory = NULL;
gboolean open_in_tab;
- _thunar_return_val_if_fail (THUNAR_IS_WINDOW (data), FALSE);
+ _thunar_return_val_if_fail (THUNAR_IS_WINDOW (window), FALSE);
- window = THUNAR_WINDOW (data);
history = thunar_standard_view_get_history (THUNAR_STANDARD_VIEW (window->view));
if (event->button == 3)
{
@@ -5098,15 +5096,13 @@ thunar_window_history_clicked (GtkWidget *button,
static gboolean
thunar_window_open_parent_clicked (GtkWidget *button,
GdkEventButton *event,
- GtkWidget *data)
+ ThunarWindow *window)
{
- ThunarWindow *window = NULL;
ThunarFile *directory = NULL;
gboolean open_in_tab;
- _thunar_return_val_if_fail (THUNAR_IS_WINDOW (data), FALSE);
+ _thunar_return_val_if_fail (THUNAR_IS_WINDOW (window), FALSE);
- window = THUNAR_WINDOW (data);
g_object_get (window->preferences, "misc-middle-click-in-tab", &open_in_tab, NULL);
if (event->button == 2)
@@ -5135,16 +5131,14 @@ thunar_window_open_parent_clicked (GtkWidget *button,
static gboolean
thunar_window_open_home_clicked (GtkWidget *button,
GdkEventButton *event,
- GtkWidget *data)
+ ThunarWindow *window)
{
- ThunarWindow *window = NULL;
ThunarFile *directory = NULL;
gint page_num;
gboolean open_in_tab;
- _thunar_return_val_if_fail (THUNAR_IS_WINDOW (data), FALSE);
+ _thunar_return_val_if_fail (THUNAR_IS_WINDOW (window), FALSE);
- window = THUNAR_WINDOW (data);
g_object_get (window->preferences, "misc-middle-click-in-tab", &open_in_tab, NULL);
if (event->button == 2)