Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vim
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Someone-Else
Vim
Commits
30bb4144
Commit
30bb4144
authored
14 years ago
by
Bram Moolenaar
Browse files
Options
Downloads
Patches
Plain Diff
Avoid warnings for unused arguments when compiling with Gnome.
parent
cfc0eee8
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gui_gtk_x11.c
+23
-11
23 additions, 11 deletions
src/gui_gtk_x11.c
with
23 additions
and
11 deletions
src/gui_gtk_x11.c
+
23
−
11
View file @
30bb4144
...
@@ -948,6 +948,10 @@ modifiers_gdk2vim(guint state)
...
@@ -948,6 +948,10 @@ modifiers_gdk2vim(guint state)
modifiers
|=
MOD_MASK_CTRL
;
modifiers
|=
MOD_MASK_CTRL
;
if
(
state
&
GDK_MOD1_MASK
)
if
(
state
&
GDK_MOD1_MASK
)
modifiers
|=
MOD_MASK_ALT
;
modifiers
|=
MOD_MASK_ALT
;
#ifdef GDK_SUPER_MASK
if
(
state
&
GDK_SUPER_MASK
)
modifiers
|=
MOD_MASK_META
;
#endif
if
(
state
&
GDK_MOD4_MASK
)
if
(
state
&
GDK_MOD4_MASK
)
modifiers
|=
MOD_MASK_META
;
modifiers
|=
MOD_MASK_META
;
...
@@ -1121,7 +1125,11 @@ key_press_event(GtkWidget *widget UNUSED,
...
@@ -1121,7 +1125,11 @@ key_press_event(GtkWidget *widget UNUSED,
* Don't do this for double-byte encodings, it turns the char into a lead
* Don't do this for double-byte encodings, it turns the char into a lead
* byte. */
* byte. */
if
(
len
==
1
if
(
len
==
1
&&
(
state
&
GDK_MOD1_MASK
)
&&
((
state
&
GDK_MOD1_MASK
)
#ifdef GDK_SUPER_MASK
||
(
state
&
GDK_SUPER_MASK
)
#endif
)
&&
!
(
key_sym
==
GDK_BackSpace
||
key_sym
==
GDK_Delete
)
&&
!
(
key_sym
==
GDK_BackSpace
||
key_sym
==
GDK_Delete
)
&&
(
string
[
0
]
&
0x80
)
==
0
&&
(
string
[
0
]
&
0x80
)
==
0
&&
!
(
key_sym
==
GDK_Tab
&&
(
state
&
GDK_SHIFT_MASK
))
&&
!
(
key_sym
==
GDK_Tab
&&
(
state
&
GDK_SHIFT_MASK
))
...
@@ -1182,7 +1190,11 @@ key_press_event(GtkWidget *widget UNUSED,
...
@@ -1182,7 +1190,11 @@ key_press_event(GtkWidget *widget UNUSED,
||
key_sym
==
GDK_Escape
||
key_sym
==
GDK_KP_Tab
||
key_sym
==
GDK_Escape
||
key_sym
==
GDK_KP_Tab
||
key_sym
==
GDK_ISO_Enter
||
key_sym
==
GDK_3270_Enter
||
key_sym
==
GDK_ISO_Enter
||
key_sym
==
GDK_3270_Enter
#ifdef FEAT_MBYTE
#ifdef FEAT_MBYTE
||
(
enc_dbcs
&&
len
==
1
&&
(
state
&
GDK_MOD1_MASK
))
||
(
enc_dbcs
&&
len
==
1
&&
((
state
&
GDK_MOD1_MASK
)
# ifdef GDK_SUPER_MASK
||
(
state
&
GDK_SUPER_MASK
)
# endif
))
#endif
#endif
)
)
{
{
...
@@ -2214,10 +2226,10 @@ drag_data_received_cb(GtkWidget *widget,
...
@@ -2214,10 +2226,10 @@ drag_data_received_cb(GtkWidget *widget,
* necessary.
* necessary.
*/
*/
static
void
static
void
sm_client_check_changed_any
(
GnomeClient
*
client
,
sm_client_check_changed_any
(
GnomeClient
*
client
UNUSED
,
gint
key
,
gint
key
,
GnomeDialogType
type
,
GnomeDialogType
type
UNUSED
,
gpointer
data
)
gpointer
data
UNUSED
)
{
{
cmdmod_T
save_cmdmod
;
cmdmod_T
save_cmdmod
;
gboolean
shutdown_cancelled
;
gboolean
shutdown_cancelled
;
...
@@ -2322,12 +2334,12 @@ write_session_file(char_u *filename)
...
@@ -2322,12 +2334,12 @@ write_session_file(char_u *filename)
*/
*/
static
gboolean
static
gboolean
sm_client_save_yourself
(
GnomeClient
*
client
,
sm_client_save_yourself
(
GnomeClient
*
client
,
gint
phase
,
gint
phase
UNUSED
,
GnomeSaveStyle
save_style
,
GnomeSaveStyle
save_style
UNUSED
,
gboolean
shutdown
,
gboolean
shutdown
UNUSED
,
GnomeInteractStyle
interact_style
,
GnomeInteractStyle
interact_style
,
gboolean
fast
,
gboolean
fast
UNUSED
,
gpointer
data
)
gpointer
data
UNUSED
)
{
{
static
const
char
suffix
[]
=
"-session.vim"
;
static
const
char
suffix
[]
=
"-session.vim"
;
char
*
session_file
;
char
*
session_file
;
...
@@ -2408,7 +2420,7 @@ sm_client_save_yourself(GnomeClient *client,
...
@@ -2408,7 +2420,7 @@ sm_client_save_yourself(GnomeClient *client,
* is happening).
* is happening).
*/
*/
static
void
static
void
sm_client_die
(
GnomeClient
*
client
,
gpointer
data
)
sm_client_die
(
GnomeClient
*
client
UNUSED
,
gpointer
data
UNUSED
)
{
{
/* Don't write messages to the GUI anymore */
/* Don't write messages to the GUI anymore */
full_screen
=
FALSE
;
full_screen
=
FALSE
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment