platform/upstream/gstreamer.git
9 years agotimeline: only redraw required areas when updating position rectangle
René Stadler [Fri, 21 Sep 2012 23:27:37 +0000 (01:27 +0200)]
timeline: only redraw required areas when updating position rectangle

9 years agoFix crash when range filtering
René Stadler [Fri, 21 Sep 2012 23:25:22 +0000 (01:25 +0200)]
Fix crash when range filtering

Regression from 25cfe9 (timeline: make log level calculation a lot faster).

9 years agotimeline: clean up widget drawing
René Stadler [Fri, 21 Sep 2012 22:33:41 +0000 (00:33 +0200)]
timeline: clean up widget drawing

9 years agotimeline: make log level calculation a lot faster
René Stadler [Fri, 21 Sep 2012 20:52:25 +0000 (22:52 +0200)]
timeline: make log level calculation a lot faster

This is the step where the timeline graph gets colored with the individual log
level colors. It's roughly 4.5 times faster now. Probably can be made even
better, the code also needs a cleanup.

9 years agoData: improve stripped log file loading performance
René Stadler [Fri, 21 Sep 2012 20:15:07 +0000 (22:15 +0200)]
Data: improve stripped log file loading performance

A ~9% improvement for files without colors. This now slightly outperforms the
code before color support was added.

9 years agoData: also yield while loading unparseable files
René Stadler [Fri, 21 Sep 2012 19:38:58 +0000 (21:38 +0200)]
Data: also yield while loading unparseable files

Otherwise, the UI would be blocked while loading something big that is not a
log file at all.

9 years agoRemove color stripping script
René Stadler [Fri, 21 Sep 2012 17:13:07 +0000 (19:13 +0200)]
Remove color stripping script

9 years agoData: add support for colored log files
René Stadler [Fri, 21 Sep 2012 17:11:40 +0000 (19:11 +0200)]
Data: add support for colored log files

Adds a ~5% penalty for loading stripped files.

9 years agotimeline: remove broken actions from context menu
René Stadler [Thu, 20 Sep 2012 22:40:07 +0000 (00:40 +0200)]
timeline: remove broken actions from context menu

Hide lines before/after doesn't work as expected in this case.

9 years agoData: fix parsing of lines missing filename or function name
René Stadler [Thu, 20 Sep 2012 21:51:05 +0000 (23:51 +0200)]
Data: fix parsing of lines missing filename or function name

E.g. ffmpeg.

9 years agotimeline: grab when scrolling in TimelineWidget
René Stadler [Thu, 20 Sep 2012 18:20:58 +0000 (20:20 +0200)]
timeline: grab when scrolling in TimelineWidget

Also use gdk_event_request_motions.

9 years agotimeline: move mouse handling into TimelineWidget
René Stadler [Thu, 20 Sep 2012 18:11:48 +0000 (20:11 +0200)]
timeline: move mouse handling into TimelineWidget

9 years agotimeline: replace self.connect calls with vmethod overrides
René Stadler [Thu, 20 Sep 2012 17:58:06 +0000 (19:58 +0200)]
timeline: replace self.connect calls with vmethod overrides

9 years agosetup: fix build
Andrzej Bieniek [Mon, 17 Sep 2012 16:39:53 +0000 (18:39 +0200)]
setup: fix build

9 years agotimeline: don't select row when changing position in the timeline
René Stadler [Mon, 27 Aug 2012 20:52:56 +0000 (13:52 -0700)]
timeline: don't select row when changing position in the timeline

Behaves just like the scrollbar now.

9 years agotimeline: stop scanning the file while filtering
René Stadler [Mon, 27 Aug 2012 20:46:14 +0000 (13:46 -0700)]
timeline: stop scanning the file while filtering

9 years agotimeline: small cleanup
René Stadler [Mon, 27 Aug 2012 20:45:57 +0000 (13:45 -0700)]
timeline: small cleanup

9 years agoModernize menus a little
René Stadler [Fri, 24 Aug 2012 00:09:04 +0000 (02:09 +0200)]
Modernize menus a little

A bit in preparation to gtk3 app menus.

9 years agoSimplify and optimize filtered model implementation
René Stadler [Thu, 23 Aug 2012 23:50:44 +0000 (01:50 +0200)]
Simplify and optimize filtered model implementation

RangeFilteredLogModel is gone. The functionality is trivially implemented in
FilteredLogModel now. Changing the range is now O(log n) at worst (was O(n) at
best, for rewriting the arrays). Stacking filtered models is not supported
anymore, which simplifies the code.

9 years agoMake RangeFilteredLogModel internal to GUI.models
René Stadler [Thu, 23 Aug 2012 23:42:00 +0000 (01:42 +0200)]
Make RangeFilteredLogModel internal to GUI.models

9 years agoAlways use a filtered log model in the log view
René Stadler [Thu, 23 Aug 2012 23:40:24 +0000 (01:40 +0200)]
Always use a filtered log model in the log view

Preparing to phase out RangeFilteredLogModel.

9 years agomodels: cleanup dead code
René Stadler [Thu, 23 Aug 2012 23:37:27 +0000 (01:37 +0200)]
models: cleanup dead code

9 years agowindow: prevent default handler for delete-event from running
René Stadler [Fri, 30 Mar 2012 23:16:25 +0000 (01:16 +0200)]
window: prevent default handler for delete-event from running

9 years agowindow: set to insensitive during load/filter operations
René Stadler [Thu, 23 Aug 2012 23:26:32 +0000 (01:26 +0200)]
window: set to insensitive during load/filter operations

9 years agowindow: show error for unparseable files
René Stadler [Thu, 23 Aug 2012 23:20:05 +0000 (01:20 +0200)]
window: show error for unparseable files

9 years agowindow: replace progress and error dialogs with InfoBars
René Stadler [Thu, 23 Aug 2012 22:24:55 +0000 (00:24 +0200)]
window: replace progress and error dialogs with InfoBars

9 years agowindow: set wmclass, to have a nicer app name when running uninstalled
René Stadler [Thu, 23 Aug 2012 22:10:05 +0000 (00:10 +0200)]
window: set wmclass, to have a nicer app name when running uninstalled

9 years agoData: fix up out-of-order log lines
René Stadler [Wed, 16 Nov 2011 19:37:21 +0000 (20:37 +0100)]
Data: fix up out-of-order log lines

This is important because we rely on monotonically increasing timestamps for
binary searches in various places.

Overhead for an already sorted file with 1 million lines is less than 5%.

9 years agowindow: connect action handlers using a function decorator
René Stadler [Wed, 16 Nov 2011 19:23:31 +0000 (20:23 +0100)]
window: connect action handlers using a function decorator

A bit esoteric, but better than maintaining the list of action names.

9 years agoGUI: use 'with' statement
René Stadler [Wed, 16 Nov 2011 18:50:06 +0000 (19:50 +0100)]
GUI: use 'with' statement

9 years agoSwitch to new try..except syntax
René Stadler [Wed, 16 Nov 2011 18:45:16 +0000 (19:45 +0100)]
Switch to new try..except syntax

This is forward compatible to Python 3.

9 years agocolumns: auto size time column when setting base time
René Stadler [Sun, 6 Nov 2011 12:35:26 +0000 (13:35 +0100)]
columns: auto size time column when setting base time

Base time formatting adds + or - in front of the timestamp, so the column has
to grow a little to not hide the last digit.

Also fixes a crash when setting the base time while the time column is hidden.

9 years agocolumns: also auto size thread and pid column on zoom change
René Stadler [Sun, 6 Nov 2011 12:19:55 +0000 (13:19 +0100)]
columns: also auto size thread and pid column on zoom change

9 years agocolumns: cleanup default size calculation
René Stadler [Sun, 6 Nov 2011 12:18:19 +0000 (13:18 +0100)]
columns: cleanup default size calculation

Some unused parameters here.

9 years agoTimeline: small cleanup
René Stadler [Sun, 6 Nov 2011 11:49:43 +0000 (12:49 +0100)]
Timeline: small cleanup

9 years agoData: remove log line serialization
René Stadler [Sun, 6 Nov 2011 11:41:08 +0000 (12:41 +0100)]
Data: remove log line serialization

This is incomplete and prone to error. Move it out into the utility script
(which is the only user).

9 years agoRemove odd-even row colors from log level column
René Stadler [Sun, 6 Nov 2011 11:19:52 +0000 (12:19 +0100)]
Remove odd-even row colors from log level column

This is more of visual clutter than aid. People also seem to be less likely to
spot the connection between the column and the timeline graph colors.

9 years agoResize time and log level columns after zoom change
René Stadler [Sat, 5 Nov 2011 23:16:29 +0000 (00:16 +0100)]
Resize time and log level columns after zoom change

9 years agoStore zoom level in state
René Stadler [Sat, 5 Nov 2011 22:47:47 +0000 (23:47 +0100)]
Store zoom level in state

9 years agoAdd zoom reset action
René Stadler [Sat, 5 Nov 2011 22:05:00 +0000 (23:05 +0100)]
Add zoom reset action

9 years agoClean up context menu
René Stadler [Sat, 5 Nov 2011 21:53:24 +0000 (22:53 +0100)]
Clean up context menu

These actions are not so commonly used, and also are not depending on the
context at all.

9 years agoRefactor and fix zoom handling
René Stadler [Sat, 5 Nov 2011 22:52:40 +0000 (23:52 +0100)]
Refactor and fix zoom handling

ColumnManager has to apply the zoom factor to newly added columns. Otherwise,
showing a previously hidden column appears with scale 1.0.

This also drops the value-changed signal emission for the vadjustment, as it is
apparently not needed.

9 years agoAdd 'fixme' and 'trace' log levels
Stefan Kost [Tue, 6 Jul 2010 08:42:08 +0000 (11:42 +0300)]
Add 'fixme' and 'trace' log levels

9 years agotimeline: add tooltip to histogram as well
Stefan Kost [Wed, 30 Jun 2010 13:16:45 +0000 (16:16 +0300)]
timeline: add tooltip to histogram as well

9 years agoAdd zoom in/out actions, reduce vertical row padding
Stefan Kost [Fri, 16 Apr 2010 15:26:26 +0000 (18:26 +0300)]
Add zoom in/out actions, reduce vertical row padding

Add two actions to shrink and enlarge the text in the log pane. Add a theme
overide to set expander size to 1 (see bug #615985) and also turn focus lines
off. Remove extra ypadding on cells.

9 years agoFix tests
René Stadler [Sun, 25 Sep 2011 19:38:48 +0000 (21:38 +0200)]
Fix tests

Forgot to convert this when modules got split.

9 years agoFix --version option
Andrzej Bieniek [Sun, 11 Sep 2011 20:10:47 +0000 (21:10 +0100)]
Fix --version option

9 years agoImprove wording of hide lines actions
René Stadler [Fri, 9 Sep 2011 20:02:28 +0000 (22:02 +0200)]
Improve wording of hide lines actions

These also appear in the context menu of the timeline. The more generic wording
makes more sense for the timeline, since you do not pinpoint any specific line
in this case.

9 years agotimeline: fix grey background artifact when enlarging window
René Stadler [Fri, 9 Sep 2011 19:47:16 +0000 (21:47 +0200)]
timeline: fix grey background artifact when enlarging window

9 years agoFix glib warnings on model property access
René Stadler [Wed, 7 Sep 2011 14:11:58 +0000 (16:11 +0200)]
Fix glib warnings on model property access

Seems like pygobject can all of the sudden not handle a NULL model on a
property. Using the getter works around this. Also using the setter now for
consistency.

9 years agotimeline: fix possible lag when dragging on timeline
René Stadler [Tue, 6 Sep 2011 20:27:33 +0000 (22:27 +0200)]
timeline: fix possible lag when dragging on timeline

I need to idle-aggregate scroll updates, since gtk performs heavy operations in
a synchronous fashion here (ironically, they do that to make scrolling smooth).

9 years agoGUI: Work around GtkBuilder name property API break (gtk+ 2.20)
René Stadler [Fri, 2 Jul 2010 20:03:39 +0000 (23:03 +0300)]
GUI: Work around GtkBuilder name property API break (gtk+ 2.20)

9 years agosetup.py: fix installation
René Stadler [Tue, 20 Oct 2009 21:32:09 +0000 (00:32 +0300)]
setup.py: fix installation

9 years agoMain: fix import
René Stadler [Tue, 20 Oct 2009 21:31:46 +0000 (00:31 +0300)]
Main: fix import

9 years agoRemove stale GUI module
René Stadler [Tue, 20 Oct 2009 21:27:46 +0000 (00:27 +0300)]
Remove stale GUI module

9 years agoAdd new base time feature
René Stadler [Fri, 16 Oct 2009 18:45:29 +0000 (21:45 +0300)]
Add new base time feature

The log view context menu gains a new action "Set base time", which changes the
time column to show the delta to the selected row.

9 years agoSplit giant GUI module into submodules
René Stadler [Thu, 6 Aug 2009 23:54:10 +0000 (02:54 +0300)]
Split giant GUI module into submodules

9 years agotimeline: fix timestamp binary search
René Stadler [Fri, 12 Jun 2009 21:58:36 +0000 (00:58 +0300)]
timeline: fix timestamp binary search

Fixes dragging the mouse over bigger gaps of log activity making the red
position rectangle come out next to the mouse pointer. Also selects the proper
row now, not randomly 1-2 rows before or after the gap.

9 years agoGUI: remove unused imports
René Stadler [Fri, 12 Jun 2009 18:53:28 +0000 (21:53 +0300)]
GUI: remove unused imports

9 years agosetup.py: Fix version number
René Stadler [Sat, 14 Mar 2009 21:50:03 +0000 (23:50 +0200)]
setup.py: Fix version number

9 years agoCleanup whitespace
René Stadler [Sat, 14 Mar 2009 21:02:45 +0000 (23:02 +0200)]
Cleanup whitespace

9 years agoUpdate copyright statement in about dialog
René Stadler [Sat, 14 Mar 2009 18:40:52 +0000 (20:40 +0200)]
Update copyright statement in about dialog

9 years agoRename UIManager file
René Stadler [Sat, 14 Mar 2009 18:06:16 +0000 (20:06 +0200)]
Rename UIManager file

9 years agoRe-write builder files with glade3
René Stadler [Sat, 14 Mar 2009 18:03:37 +0000 (20:03 +0200)]
Re-write builder files with glade3

9 years agoMigrate from glade to GtkBuilder
René Stadler [Sat, 14 Mar 2009 17:38:36 +0000 (19:38 +0200)]
Migrate from glade to GtkBuilder

9 years agoRemove glade project file
René Stadler [Tue, 10 Mar 2009 22:41:26 +0000 (00:41 +0200)]
Remove glade project file

9 years agoFix logging being on by default with recent Python
René Stadler [Sat, 29 Nov 2008 19:06:52 +0000 (21:06 +0200)]
Fix logging being on by default with recent Python

The fix for Python issue #1021 uncovered a mistake of mine.  I was under the
impression that logging.NOTSET level means "off", but in fact it means to not
modify the level, and setting that on the root logger with basicConfig leads to
turning on all levels.

9 years agoUse mmap in a portable way
René Stadler [Sat, 29 Nov 2008 19:00:20 +0000 (21:00 +0200)]
Use mmap in a portable way

9 years agoAdd FIXME comments
René Stadler [Wed, 26 Nov 2008 21:21:57 +0000 (23:21 +0200)]
Add FIXME comments

9 years agoGUI: Fix edit-copy-line action crashing/copying wrong line
René Stadler [Wed, 26 Nov 2008 21:13:05 +0000 (23:13 +0200)]
GUI: Fix edit-copy-line action crashing/copying wrong line

When the view was unfiltered, this crashed.  When the view was range filtered,
this copied the wrong line.

Spotted by Stefan Kost.

9 years agoMigrate .bzrignore -> .gitignore
René Stadler [Tue, 4 Nov 2008 22:00:48 +0000 (00:00 +0200)]
Migrate .bzrignore -> .gitignore

9 years agoMove more attribute lookups out of loops for speed
René Stadler [Mon, 30 Jun 2008 16:48:34 +0000 (19:48 +0300)]
Move more attribute lookups out of loops for speed

9 years agoAdd support for recent log format changes, be more tolerant on whitespaces, cope...
René Stadler [Sun, 29 Jun 2008 18:14:07 +0000 (21:14 +0300)]
Add support for recent log format changes, be more tolerant on whitespaces, cope with object names containing '>'

9 years agoUse correct license in about dialog
René Stadler [Fri, 13 Jun 2008 19:58:54 +0000 (22:58 +0300)]
Use correct license in about dialog

9 years agoFix installation by including missing packages
René Stadler [Sun, 2 Mar 2008 13:24:16 +0000 (15:24 +0200)]
Fix installation by including missing packages

9 years agoAdd (placeholder) SVG icon file
René Stadler [Sat, 1 Mar 2008 18:44:53 +0000 (20:44 +0200)]
Add (placeholder) SVG icon file

9 years agoUpdate vertical timeline when the widget size changes
René Stadler [Tue, 5 Feb 2008 15:29:52 +0000 (17:29 +0200)]
Update vertical timeline when the widget size changes

9 years agoFix bottom view showing the wrong selected log line
René Stadler [Mon, 4 Feb 2008 15:36:57 +0000 (17:36 +0200)]
Fix bottom view showing the wrong selected log line

9 years agoFix bottom view line activating the wrong line after filtering
René Stadler [Mon, 4 Feb 2008 15:26:48 +0000 (17:26 +0200)]
Fix bottom view line activating the wrong line after filtering

9 years agoFix bottom view not showing current line until you add something there
René Stadler [Fri, 25 Jan 2008 13:44:38 +0000 (15:44 +0200)]
Fix bottom view not showing current line until you add something there

9 years agoFaster handling of partial expose events in timeline
René Stadler [Fri, 25 Jan 2008 10:40:51 +0000 (12:40 +0200)]
Faster handling of partial expose events in timeline

9 years agoMention GStreamer in --help output
René Stadler [Fri, 25 Jan 2008 09:17:02 +0000 (11:17 +0200)]
Mention GStreamer in --help output

9 years agoAllow to cancel a running filter process
René Stadler [Fri, 25 Jan 2008 09:12:48 +0000 (11:12 +0200)]
Allow to cancel a running filter process

9 years agoMake hide before/after action insensitive when first/last line is selected
René Stadler [Thu, 24 Jan 2008 14:19:15 +0000 (16:19 +0200)]
Make hide before/after action insensitive when first/last line is selected

9 years agoAdd filtering for object name and source code filename
René Stadler [Thu, 24 Jan 2008 13:18:37 +0000 (15:18 +0200)]
Add filtering for object name and source code filename

9 years agoAdd FIXME comment
René Stadler [Thu, 24 Jan 2008 12:29:39 +0000 (14:29 +0200)]
Add FIXME comment

9 years agoCreate own menu structure for log view context menu
René Stadler [Thu, 24 Jan 2008 10:16:41 +0000 (12:16 +0200)]
Create own menu structure for log view context menu

9 years agoSync show-timeline action state before connecting signal handler
René Stadler [Thu, 24 Jan 2008 09:49:41 +0000 (11:49 +0200)]
Sync show-timeline action state before connecting signal handler

9 years agoTimeline.py: Move per-window management into own class
René Stadler [Thu, 24 Jan 2008 09:47:27 +0000 (11:47 +0200)]
Timeline.py: Move per-window management into own class

9 years agoRe-format long line
René Stadler [Thu, 24 Jan 2008 09:12:05 +0000 (11:12 +0200)]
Re-format long line

9 years agoReplace gdk.ALL_EVENTS_MASK with proper minimal set of event flags
René Stadler [Thu, 24 Jan 2008 08:59:14 +0000 (10:59 +0200)]
Replace gdk.ALL_EVENTS_MASK with proper minimal set of event flags

9 years agoMove performance test program into its own file
René Stadler [Wed, 23 Jan 2008 15:13:07 +0000 (17:13 +0200)]
Move performance test program into its own file

9 years agoAllow creation of more than one window
René Stadler [Wed, 23 Jan 2008 15:07:55 +0000 (17:07 +0200)]
Allow creation of more than one window

9 years agoAdd TODO comment
René Stadler [Wed, 23 Jan 2008 15:07:51 +0000 (17:07 +0200)]
Add TODO comment

9 years agoUse GdkColors for level column, cleanup color handling
René Stadler [Wed, 23 Jan 2008 12:51:14 +0000 (14:51 +0200)]
Use GdkColors for level column, cleanup color handling

9 years agoReplace linear-time filtered index search with usage of bisect module
René Stadler [Wed, 23 Jan 2008 09:03:47 +0000 (11:03 +0200)]
Replace linear-time filtered index search with usage of bisect module

9 years agoRestore visible range of log view when changing filter
René Stadler [Tue, 22 Jan 2008 14:28:09 +0000 (16:28 +0200)]
Restore visible range of log view when changing filter

9 years agoResolve small FIXME in SubRange
René Stadler [Tue, 22 Jan 2008 11:50:04 +0000 (13:50 +0200)]
Resolve small FIXME in SubRange

9 years agoCleanup FilteredLogModel.super_model_changed_range
René Stadler [Tue, 22 Jan 2008 11:40:36 +0000 (13:40 +0200)]
Cleanup FilteredLogModel.super_model_changed_range

9 years agoFix crash with unparsable files
René Stadler [Tue, 22 Jan 2008 10:59:37 +0000 (12:59 +0200)]
Fix crash with unparsable files