Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
girara
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Johannes Löthberg
girara
Commits
0a9d86a7
Commit
0a9d86a7
authored
Jun 13, 2017
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort headers
parent
e5244ee9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
18 deletions
+25
-18
girara/callbacks.c
girara/callbacks.c
+7
-3
girara/commands.c
girara/commands.c
+7
-6
girara/session.c
girara/session.c
+8
-7
girara/shortcuts.c
girara/shortcuts.c
+3
-2
No files found.
girara/callbacks.c
View file @
0a9d86a7
/* See LICENSE file for license and copyright information */
#include "callbacks.h"
#include "datastructures.h"
#include "session.h"
#include "shortcuts.h"
#include "input-history.h"
#include "internal.h"
#include "session.h"
#include "shortcuts.h"
#include "utils.h"
#include <string.h>
#include <glib/gi18n-lib.h>
#include <string.h>
static
const
guint
ALL_ACCELS_MASK
=
GDK_CONTROL_MASK
|
GDK_SHIFT_MASK
|
GDK_MOD1_MASK
;
static
const
guint
MOUSE_MASK
=
GDK_CONTROL_MASK
|
GDK_SHIFT_MASK
|
GDK_MOD1_MASK
|
...
...
@@ -418,8 +419,10 @@ girara_callback_inputbar_activate(GtkEntry* entry, girara_session_t* session)
const
char
identifier
=
identifier_s
[
0
];
g_free
(
identifier_s
);
girara_debug
(
"Processing special command with identifier '%c'."
,
identifier
);
GIRARA_LIST_FOREACH
(
session
->
bindings
.
special_commands
,
girara_special_command_t
*
,
iter
,
special_command
)
if
(
special_command
->
identifier
==
identifier
)
{
girara_debug
(
"Found special command."
);
if
(
special_command
->
always
!=
true
)
{
special_command
->
function
(
session
,
input
,
&
(
special_command
->
argument
));
}
...
...
@@ -512,6 +515,7 @@ girara_callback_inputbar_key_press_event(GtkWidget* entry, GdkEventKey* event, g
/* a custom handler has been installed (e.g. by girara_dialog) */
gboolean
custom_ret
=
false
;
if
(
session
->
signals
.
inputbar_custom_key_press_event
!=
NULL
)
{
girara_debug
(
"Running custom key press event handler."
);
custom_ret
=
session
->
signals
.
inputbar_custom_key_press_event
(
entry
,
event
,
session
->
signals
.
inputbar_custom_data
);
if
(
custom_ret
==
true
)
{
girara_isc_abort
(
session
,
NULL
,
NULL
,
0
);
...
...
girara/commands.c
View file @
0a9d86a7
/* See LICENSE file for license and copyright information */
#include <string.h>
#include <stdlib.h>
#include <glib/gi18n-lib.h>
#include "commands.h"
#include "datastructures.h"
#include "session.h"
#include "internal.h"
#include "
utils
.h"
#include "
session
.h"
#include "settings.h"
#include "shortcuts.h"
#include "utils.h"
#include <glib/gi18n-lib.h>
#include <stdlib.h>
#include <string.h>
/* default commands implementation */
bool
...
...
girara/session.c
View file @
0a9d86a7
/* See LICENSE file for license and copyright information */
#include <stdlib.h>
#include <glib/gi18n-lib.h>
#ifdef WITH_LIBNOTIFY
#include <libnotify/notify.h>
#endif
#include "session.h"
#include "callbacks.h"
...
...
@@ -22,6 +15,14 @@
#include "template.h"
#include "utils.h"
#include <glib/gi18n-lib.h>
#include <stdlib.h>
#ifdef WITH_LIBNOTIFY
#include <libnotify/notify.h>
#endif
static
int
cb_sort_settings
(
girara_setting_t
*
lhs
,
girara_setting_t
*
rhs
)
{
...
...
girara/shortcuts.c
View file @
0a9d86a7
/* See LICENSE file for license and copyright information */
#include "shortcuts.h"
#include "datastructures.h"
#include "input-history.h"
#include "internal.h"
#include "session.h"
#include "settings.h"
#include "tabs.h"
#include "input-history.h"
#include <string.h>
#include <gtk/gtk.h>
#include <string.h>
static
void
girara_toggle_widget_visibility
(
GtkWidget
*
widget
);
static
bool
simulate_key_press
(
girara_session_t
*
session
,
int
state
,
int
key
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment