Commit Graph

14281 Commits

Author SHA1 Message Date
Philipp Hörist 55561b3dd0 Merge branch 'scrolling' into 'master'
Improve Scrolling

See merge request !65
2017-03-11 22:18:37 +01:00
Philipp Hörist 8547d2b4f9 Simplify scrolling in conversation textview 2017-03-11 22:11:02 +01:00
Philipp Hörist 1e06db9fa6 Remove smooth scrolling
GTK3+ does smooth scrolling in ScrolledWindows on its own
2017-03-11 22:11:01 +01:00
Philipp Hörist 3f38ccc3a5 Simplify import and move to the top 2017-03-11 22:11:00 +01:00
Philipp Hörist b7cce4e728 Merge branch 'refactoring' into 'master'
Replace some deprecated methods

See merge request !64
2017-03-11 21:58:12 +01:00
Philipp Hörist 8af80a6189 Dont change mouse cursor on leave event
GTK does this on itself
2017-03-08 19:46:39 +01:00
Philipp Hörist 209154edb2 Refactor showing tooltip in ConversationTextview
the 'query-tooltip' event does essentially the same
as the 'motion-notify-event' but supplys us with coordinates,
which lets us get rid of deprecated get_client_pointer()
2017-03-08 16:14:07 +01:00
Philipp Hörist c61efaa2c5 Replace deprecated Gdk.Cursor.new() 2017-03-07 22:06:44 +01:00
Philipp Hörist 6de3120d43 Refactor showing tooltip in HtmlTextView
The 'query-tooltip' event does essentially the same as the
'motion-notify-event' but supplys us with coordinates,
which lets us get rid of deprecated get_client_pointer()

Add a connect_tooltip() method that allows other classes
that use HtmlTextView to provide their own tooltip method
2017-03-07 22:06:31 +01:00
Philipp Hörist 205f5f3044 Merge branch 'command-system-regressions' into 'master'
Fix various regressions in the command system

See merge request !63
2017-03-07 17:19:11 +01:00
Markus Böhme 0189305495 Fix grep command in chat window
Commit d75ebd95e5 modified the return value of logger.py's method
get_search_results_for_query by appending another component to the
tuple. Because of this unpacking the tuple in the command system's grep
command failed.
2017-03-07 16:48:32 +01:00
Markus Böhme ceb7772b5b Correct some typos in command system comments 2017-03-07 16:46:12 +01:00
Markus Böhme f1ee561b9b Fix broken command system by importing CommandContainer modules
ChatControlBase was split from ChatControl into its own module in commit
80221afc2c. With this split the import of the CommandContainer modules
was removed as well, likely because their members are not referenced
anywhere. However, importing these modules even when they are not used
directly is crucial because the contained CommandContainers are only
registered with the command system when their definitions are evaluated.

Import the modules with CommandContainers in chat_control_base.py to fix
the command system. Also add a comment stating more clearly why the
imports need to be kept around.
2017-03-07 16:46:12 +01:00
Markus Böhme 432ec7ff7d Fix usage of logger constants in command system
The definition of various constants was refactored to use enumerations
in commit 2fbadc91e9. One reference in the command system was not
changed to use the new enum, however.
2017-03-07 16:46:05 +01:00
Philipp Hörist c02260c4d1 Move CSS Code into gajim.css 2017-03-04 09:53:14 +01:00
Philipp Hörist 9bcad9a233 Style GroupChatControl Banner with CSS 2017-03-04 01:24:28 +01:00
Philipp Hörist fc6b50d953 Create CheckButtons with mnemonics 2017-03-04 01:06:38 +01:00
Philipp Hörist a44be8e6b6 Merge branch 'master' into 'master'
CSS Styling

See merge request !62
2017-03-04 00:24:48 +01:00
Philipp Hörist 840cb365e8 Use unicode path for plugins
non-unicode path is marked as deprecated
2017-03-04 00:19:35 +01:00
Philipp Hörist b5c98864ad Add commandline option to show warnings 2017-03-04 00:19:04 +01:00
Philipp Hörist 1b975172d6 Merge branch 'history-highlighting' into 'master'
Highlight all paragraphs of a message in the history window

See merge request !46
2017-03-03 23:45:06 +01:00
Markus Böhme deebe38438 Prevent unnecessary reloading of conversations in the history window
Do not reload the conversation in the history window when the user
selects another search result from the same day. Just clearing the
previous highlighting is enough. This prevents flickering and provides
a much more pleasant user experience.
2017-03-03 17:29:05 +01:00
Philipp Hörist 0abb26ae36 Dont use depracted override_font() 2017-03-03 00:11:23 +01:00
Philipp Hörist 9ecabd561e Dont use depracted override_color() 2017-03-03 00:00:22 +01:00
Philipp Hörist e00341e83e Dont use depracted override_background_color() 2017-03-02 23:58:21 +01:00
Philipp Hörist 516a18eb5d Add CSS Provider and convert config values to css 2017-03-02 23:57:05 +01:00
Markus Böhme d75ebd95e5 Rework message highlighting in the history window to not use timestamps
Search results in the history window to are scrolled to and highlighted
once the user clicks on one of them. Messages are searched by text in
the log database, but then looked up in the history text buffer via a
visible or invisible timestamp obtained from the database record.

Timestamps in the history text buffer, depending on user configuration,
may only have a coarse granularity. Philipp Hörist discovered that this
may lead to the highlighting of the wrong line in the history text view
and proposed an alternative solution that is implemented in this patch.

Timestamps are abolished as a means of searching messages. Instead, add
a mark with the unique message id (log line id) at the start of every
message in the history text buffer when the conversation is loaded.
After fetching the search results from the database this id can be used
to unambiguously find the corresponding message in the history text
buffer.
2017-03-02 23:55:18 +01:00
Philipp Hörist 8157cb38ec Fix verbose logging 2017-03-01 16:33:09 +01:00
Philipp Hörist 54502446a3 Lookup action in correct window Fixes #8560 2017-02-28 16:49:01 +01:00
Philipp Hörist 86faba2649 Add certifi to windows dependencys 2017-02-27 23:14:37 +01:00
Philipp Hörist 8a1a326bae Add extension point in plugins window 2017-02-25 19:21:21 +01:00
Philipp Hörist ddf60b01b3 Parse log arguments earlier 2017-02-25 17:21:03 +01:00
Philipp Hörist a40c078420 Merge branch 'small-fixes' into 'master'
Plugin Installer Version 0.18

See merge request !61
2017-02-25 15:37:33 +01:00
Philipp Hörist 5c11e240b1 Reload plugins if already loaded 2017-02-23 17:57:11 +01:00
Philipp Hörist 8e8605615f Add scanning single plugins 2017-02-23 17:56:19 +01:00
Markus Böhme 665898864f Remove dead code in logger.py method get_search_results_for_query
The method get_search_results_for_query provides a means to search via a
passed in SQL query. This feature has been unused and dead since its initial
commit back in 2005 (commit e542fff69f), so just remove it.
2017-02-22 14:55:44 +01:00
Markus Böhme 65c6a1e7e5 Remove unnecessary code in message highlighting in the history window
The message to be highlighted is searched via an already formatted
timestamp, and the match contains the whole timestamp with any
preceding characters (like "["). Therefore, calling backward_char on
the start iterator of the match just goes back to the previous line
and is not needed.
2017-02-22 12:56:31 +01:00
Markus Böhme d9a2251582 Highlight all paragraphs of a search result in the history window
A single message may span multiple paragraphs. Highlight all paragraphs
of a search result because a keyword could be in any of them.

Every message already has the 'eol' tag on its newline character.
Highlight from the start of a search match up to the next 'eol' tag.
2017-02-22 12:56:31 +01:00
Markus Böhme 2e026335de Simplify appending new line in history window
ConversationTextview provides an abstraction for adding text with tags.
Use it instead of directly accessing its backing text buffer.
2017-02-22 12:56:31 +01:00
Philipp Hörist a606d0ed7d Activate PluginInstaller in plugin window init 2017-02-19 18:13:10 +01:00
Philipp Hörist 18df7163d1 Merge branch 'roster' into 'master'
Fix endless loop in various CellRenderers

See merge request !59
2017-02-19 18:10:13 +01:00
Philipp Hörist dd3a2f3abc Fix endless loop in various CellRenderers
context.get_background_color() first calls the CellRenderer to render
the cell before giving back the color.

When we call this inside a CellRenderer, this is an endless loop
2017-02-19 18:07:06 +01:00
Philipp Hörist 4a7e54347c Merge branch 'appmenu' into 'master'
Port application menu to GMenu

See merge request !52
2017-02-13 00:52:53 +01:00
Philipp Hörist 1b2324ca97 Merge branch 'small-fixes' into 'master'
Small fixes

Closes #8542

See merge request !58
2017-02-12 19:10:55 +01:00
Philipp Hörist 09f54f97d0 Use platform identifier with better granularity
Fixes #8542
2017-02-12 19:09:49 +01:00
Philipp Hörist 50514393f5 Fix key error on removing account 2017-02-12 19:09:48 +01:00
Philipp Hörist d24bed12ce Dont try to select iter if there is none 2017-02-12 19:09:48 +01:00
Philipp Hörist 6f8452667d Port application menu to GMenu 2017-02-12 18:17:27 +01:00
Philipp Hörist eec1a69efd Merge branch 'history-manager' into 'master'
History manager fixes

See merge request !57
2017-02-12 16:50:28 +01:00
Philipp Hörist 2a599d1e89 Fix constants usage in history manager 2017-02-12 16:45:56 +01:00