Skip to content

Commit

Permalink
fix indent and spacing a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
monsta committed Dec 29, 2016
1 parent 1902221 commit 5ba16bf
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 36 deletions.
20 changes: 10 additions & 10 deletions eel/eel-canvas.c
Expand Up @@ -332,7 +332,7 @@ eel_canvas_item_dispose (GObject *object)
item->canvas->need_repick = TRUE;
}

#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
eel_canvas_item_ungrab (item);
#else
eel_canvas_item_ungrab (item, GDK_CURRENT_TIME);
Expand Down Expand Up @@ -859,7 +859,7 @@ eel_canvas_item_hide (EelCanvasItem *item)
}
}

#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
/*
* Prepare the window for grabbing, i.e. show it.
*/
Expand Down Expand Up @@ -911,7 +911,7 @@ GdkGrabStatus
eel_canvas_item_grab (EelCanvasItem *item,
GdkEventMask event_mask,
GdkCursor *cursor,
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
const GdkEvent *event)
{
GdkGrabStatus retval;
Expand All @@ -937,7 +937,7 @@ eel_canvas_item_grab (EelCanvasItem *item,
return GDK_GRAB_NOT_VIEWABLE;

display = gtk_widget_get_display (GTK_WIDGET (item->canvas));
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
seat = gdk_display_get_default_seat (display);

retval = gdk_seat_grab (seat,
Expand Down Expand Up @@ -971,7 +971,7 @@ eel_canvas_item_grab (EelCanvasItem *item,
return retval;
}

#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
/**
* eel_canvas_item_ungrab:
* @item: A canvas item that holds a grab.
Expand All @@ -990,7 +990,7 @@ eel_canvas_item_grab (EelCanvasItem *item,
**/
#endif
void
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
eel_canvas_item_ungrab (EelCanvasItem *item)
{
GdkDisplay *display;
Expand Down Expand Up @@ -2209,7 +2209,7 @@ shutdown_transients (EelCanvas *canvas)

if (canvas->grabbed_item)
{
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
eel_canvas_item_ungrab (canvas->grabbed_item);
#else
eel_canvas_item_ungrab (canvas->grabbed_item, GDK_CURRENT_TIME);
Expand Down Expand Up @@ -2606,7 +2606,7 @@ emit_event (EelCanvas *canvas, GdkEvent *event)
break;

case GDK_MOTION_NOTIFY:
#if !GTK_CHECK_VERSION(3, 20, 0)
#if !GTK_CHECK_VERSION (3, 20, 0)
eel_canvas_window_to_world (canvas,
ev.motion.x, ev.motion.y,
&ev.motion.x, &ev.motion.y);
Expand All @@ -2616,15 +2616,15 @@ emit_event (EelCanvas *canvas, GdkEvent *event)
case GDK_BUTTON_PRESS:
case GDK_2BUTTON_PRESS:
case GDK_3BUTTON_PRESS:
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
case GDK_BUTTON_RELEASE:
#endif
eel_canvas_window_to_world (canvas,
ev.motion.x, ev.motion.y,
&ev.motion.x, &ev.motion.y);
break;

#if !GTK_CHECK_VERSION(3, 20, 0)
#if !GTK_CHECK_VERSION (3, 20, 0)
case GDK_BUTTON_RELEASE:
eel_canvas_window_to_world (canvas,
ev.motion.x, ev.motion.y,
Expand Down
6 changes: 3 additions & 3 deletions eel/eel-canvas.h
Expand Up @@ -247,7 +247,7 @@ extern "C" {
*/
void eel_canvas_item_hide (EelCanvasItem *item);

#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
/* Grab the seat for the specified item. Only the events in event_mask will be
* reported. If cursor is non-NULL, it will be used during the duration of the
* grab. event is the event, triggering the grab. Returns the same values as gdk_seat_grab().
Expand All @@ -262,13 +262,13 @@ extern "C" {
GdkGrabStatus eel_canvas_item_grab (EelCanvasItem *item,
GdkEventMask event_mask,
GdkCursor *cursor,
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
const GdkEvent* event);
#else
guint32 etime);
#endif

#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
/* Ungrabs the seat -- the specified item must be the same that was passed to
* eel_canvas_item_grab().
*/
Expand Down
22 changes: 11 additions & 11 deletions libcaja-private/caja-icon-container.c
Expand Up @@ -2730,7 +2730,7 @@ rubberband_timeout_callback (gpointer data)
double world_x, world_y;
int x_scroll, y_scroll;
int adj_x, adj_y;
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
GdkDisplay *display;
GdkSeat *seat;
#endif
Expand Down Expand Up @@ -2763,7 +2763,7 @@ rubberband_timeout_callback (gpointer data)
band_info->last_adj_y = adj_y;
adj_changed = TRUE;
}
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
display = gtk_widget_get_display (widget);
seat = gdk_display_get_default_seat (display);

Expand Down Expand Up @@ -2946,7 +2946,7 @@ start_rubberbanding (CajaIconContainer *container,
(GDK_POINTER_MOTION_MASK
| GDK_BUTTON_RELEASE_MASK
| GDK_SCROLL_MASK),
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
NULL,
(GdkEvent *)event);
#else
Expand All @@ -2955,7 +2955,7 @@ start_rubberbanding (CajaIconContainer *container,
}

static void
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
stop_rubberbanding (CajaIconContainer *container)
#else
stop_rubberbanding (CajaIconContainer *container,
Expand All @@ -2974,7 +2974,7 @@ stop_rubberbanding (CajaIconContainer *container,
band_info->active = FALSE;

/* Destroy this canvas item; the parent will unref it. */
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
eel_canvas_item_ungrab (band_info->selection_rectangle);
#else
eel_canvas_item_ungrab (band_info->selection_rectangle, time);
Expand Down Expand Up @@ -4841,7 +4841,7 @@ clear_drag_state (CajaIconContainer *container)
}

static gboolean
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
start_stretching (CajaIconContainer *container,
GdkEvent *event)
#else
Expand Down Expand Up @@ -4904,7 +4904,7 @@ start_stretching (CajaIconContainer *container)
(GDK_POINTER_MOTION_MASK
| GDK_BUTTON_RELEASE_MASK),
cursor,
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
event);
#else
GDK_CURRENT_TIME);
Expand Down Expand Up @@ -5016,7 +5016,7 @@ keyboard_stretching (CajaIconContainer *container,
static void
ungrab_stretch_icon (CajaIconContainer *container)
{
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
eel_canvas_item_ungrab (EEL_CANVAS_ITEM (container->details->stretch_icon->item));
#else
eel_canvas_item_ungrab (EEL_CANVAS_ITEM (container->details->stretch_icon->item),
Expand Down Expand Up @@ -5104,7 +5104,7 @@ button_release_event (GtkWidget *widget,

if (event->button == RUBBERBAND_BUTTON && details->rubberband_info.active)
{
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
stop_rubberbanding (container);
#else
stop_rubberbanding (container, event->time);
Expand Down Expand Up @@ -6115,7 +6115,7 @@ grab_notify_cb (GtkWidget *widget,
* up (e.g. authentication or an error). Stop
* the rubberbanding so that we can handle the
* dialog. */
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
stop_rubberbanding (container);
#else
stop_rubberbanding (container,
Expand Down Expand Up @@ -6863,7 +6863,7 @@ handle_icon_button_press (CajaIconContainer *container,
*/
if (icon == container->details->stretch_icon)
{
#if GTK_CHECK_VERSION(3, 20, 0)
#if GTK_CHECK_VERSION (3, 20, 0)
if (start_stretching (container, (GdkEvent *)event))
{
#else
Expand Down
2 changes: 1 addition & 1 deletion src/caja-notebook.c
Expand Up @@ -325,7 +325,7 @@ build_tab_label (CajaNotebook *nb, CajaWindowSlot *slot)
gtk_button_set_relief (GTK_BUTTON (close_button),
GTK_RELIEF_NONE);
/* don't allow focus on the close button */
#if GTK_CHECK_VERSION(3,20,0)
#if GTK_CHECK_VERSION (3, 20, 0)
gtk_widget_set_focus_on_click (close_button, FALSE);
#else
gtk_button_set_focus_on_click (GTK_BUTTON (close_button), FALSE);
Expand Down
4 changes: 2 additions & 2 deletions src/caja-pathbar.c
Expand Up @@ -150,7 +150,7 @@ get_slider_button (CajaPathBar *path_bar,
GtkWidget *button;

button = gtk_button_new ();
#if GTK_CHECK_VERSION(3,20,0)
#if GTK_CHECK_VERSION (3, 20, 0)
gtk_widget_set_focus_on_click (button, FALSE);
#else
gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
Expand Down Expand Up @@ -1881,7 +1881,7 @@ make_directory_button (CajaPathBar *path_bar,
button_data->button = gtk_toggle_button_new ();
gtk_style_context_add_class (gtk_widget_get_style_context (button_data->button),
"text-button");
#if GTK_CHECK_VERSION(3,20,0)
#if GTK_CHECK_VERSION (3, 20, 0)
gtk_widget_set_focus_on_click (button_data->button, FALSE);
#else
gtk_button_set_focus_on_click (GTK_BUTTON (button_data->button), FALSE);
Expand Down
2 changes: 1 addition & 1 deletion src/caja-view-as-action.c
Expand Up @@ -180,7 +180,7 @@ connect_proxy (GtkAction *action,

view_as_combo_box = gtk_combo_box_text_new ();

#if GTK_CHECK_VERSION(3,20,0)
#if GTK_CHECK_VERSION (3, 20, 0)
gtk_widget_set_focus_on_click (view_as_combo_box, FALSE);
#else
gtk_combo_box_set_focus_on_click (GTK_COMBO_BOX (view_as_combo_box), FALSE);
Expand Down
6 changes: 3 additions & 3 deletions src/caja-zoom-control.c
Expand Up @@ -311,7 +311,7 @@ caja_zoom_control_init (CajaZoomControl *zoom_control)

image = gtk_image_new_from_icon_name ("zoom-out", GTK_ICON_SIZE_MENU);
zoom_control->details->zoom_out = gtk_button_new ();
#if GTK_CHECK_VERSION(3,20,0)
#if GTK_CHECK_VERSION (3, 20, 0)
gtk_widget_set_focus_on_click (zoom_control->details->zoom_out, FALSE);
#else
gtk_button_set_focus_on_click (GTK_BUTTON (zoom_control->details->zoom_out), FALSE);
Expand All @@ -331,7 +331,7 @@ caja_zoom_control_init (CajaZoomControl *zoom_control)
zoom_control->details->zoom_out, FALSE, FALSE, 0);

zoom_control->details->zoom_button = gtk_button_new ();
#if GTK_CHECK_VERSION(3,20,0)
#if GTK_CHECK_VERSION (3, 20, 0)
gtk_widget_set_focus_on_click (zoom_control->details->zoom_button, FALSE);
#else
gtk_button_set_focus_on_click (GTK_BUTTON (zoom_control->details->zoom_button), FALSE);
Expand Down Expand Up @@ -373,7 +373,7 @@ caja_zoom_control_init (CajaZoomControl *zoom_control)

image = gtk_image_new_from_icon_name ("zoom-in", GTK_ICON_SIZE_MENU);
zoom_control->details->zoom_in = gtk_button_new ();
#if GTK_CHECK_VERSION(3,20,0)
#if GTK_CHECK_VERSION (3, 20, 0)
gtk_widget_set_focus_on_click (zoom_control->details->zoom_in, FALSE);
#else
gtk_button_set_focus_on_click (GTK_BUTTON (zoom_control->details->zoom_in), FALSE);
Expand Down
11 changes: 6 additions & 5 deletions src/file-manager/fm-directory-view.c
Expand Up @@ -3643,6 +3643,7 @@ real_set_is_active (FMDirectoryView *view,
eel_background_set_active (bg, is_active);
}
#endif

static void
fm_directory_view_set_is_active (FMDirectoryView *view,
gboolean is_active)
Expand Down Expand Up @@ -11033,11 +11034,11 @@ fm_directory_view_class_init (FMDirectoryViewClass *klass)
klass->supports_properties = real_supports_properties;
klass->supports_zooming = real_supports_zooming;
klass->using_manual_layout = real_using_manual_layout;
klass->merge_menus = real_merge_menus;
klass->unmerge_menus = real_unmerge_menus;
klass->update_menus = real_update_menus;
klass->merge_menus = real_merge_menus;
klass->unmerge_menus = real_unmerge_menus;
klass->update_menus = real_update_menus;
#if !GTK_CHECK_VERSION (3, 22, 0)
klass->set_is_active = real_set_is_active;
klass->set_is_active = real_set_is_active;
#endif
/* Function pointers that subclasses must override */
EEL_ASSIGN_MUST_OVERRIDE_SIGNAL (klass, fm_directory_view, add_file);
Expand All @@ -11047,7 +11048,7 @@ fm_directory_view_class_init (FMDirectoryViewClass *klass)
EEL_ASSIGN_MUST_OVERRIDE_SIGNAL (klass, fm_directory_view, clear);
EEL_ASSIGN_MUST_OVERRIDE_SIGNAL (klass, fm_directory_view, file_changed);
#if !GTK_CHECK_VERSION (3, 22, 0)
EEL_ASSIGN_MUST_OVERRIDE_SIGNAL (klass, fm_directory_view, get_background_widget);
EEL_ASSIGN_MUST_OVERRIDE_SIGNAL (klass, fm_directory_view, get_background_widget);
#endif
EEL_ASSIGN_MUST_OVERRIDE_SIGNAL (klass, fm_directory_view, get_selection);
EEL_ASSIGN_MUST_OVERRIDE_SIGNAL (klass, fm_directory_view, get_selection_for_file_transfer);
Expand Down

0 comments on commit 5ba16bf

Please sign in to comment.