Benjamin Otte
eaa872f6c3
inspector: Replace reload with record
...
and when pressed, record instance counts at 1fps.
2014-10-14 14:03:06 +02:00
Benjamin Otte
43ad7c9714
inspector: Add a graph cell renderer
...
... and use it to display graphs for how object counts changed.
2014-10-14 14:03:06 +02:00
Benjamin Otte
0a6755b57c
inspector: Add a GraphData object for recording data
...
This way we can keep more data than just the 2 last values.
2014-10-14 14:03:06 +02:00
Benjamin Otte
14e0283413
inspector: Kepp tree iter in type data
...
This way we don't have to clear/refill the model every time but can keep
the existing model and only update the values.
A nice side benefit is that running an update keeps the current selection.
2014-10-14 14:03:06 +02:00
Benjamin Otte
e36bfb45cd
inspector: Make all statistics columns visible always
2014-10-14 14:03:06 +02:00
Benjamin Otte
8d06b84670
inspector: Update all statistics in same place
2014-10-14 14:03:06 +02:00
Benjamin Otte
d123ea579f
inspector: increase type by right amount
...
It's a shift, so we better shift it!
2014-10-14 14:03:05 +02:00
Benjamin Otte
525676435d
inspector: Add type column to statistics
...
Rename old type column to "type name"
2014-10-14 14:03:05 +02:00
Benjamin Otte
db8cdd6392
inspector: Split out a function
2014-10-14 14:03:05 +02:00
Matthias Clasen
3a19c76017
inspector: Bring the selector back
...
Make it a separate page instead of the old button path.
2014-10-12 07:57:29 -04:00
Matthias Clasen
5624da20e3
inspector: Some improvements for statistics
...
Show the last two snapshots, plus a delta.
2014-10-11 17:58:31 -04:00
Matthias Clasen
9f1d651e0b
inspector: Add a tab for object counts
...
This can be useful in finding leaks.
https://bugzilla.gnome.org/show_bug.cgi?id=738272
2014-10-11 16:54:24 -04:00
Matthias Clasen
9a6aa8db68
inspector: Cosmetics
...
Add .image-button to the tool buttons in the CSS editor - still
not square.
2014-10-11 08:15:07 -04:00
Matthias Clasen
735cf98af1
inspector: Remove a stray separator
2014-10-11 08:07:04 -04:00
Matthias Clasen
3715fec02d
inspector: Make the window smaller
...
No need for 1000 pixels of with anymore, after the reorg.
2014-10-11 08:01:57 -04:00
Matthias Clasen
615e4332ef
inspector: Make resource list columns resizable
...
This tree has the potential to be deep, and contain long
names, so it forces the window to be wide, unless we
allow the columns to shrink.
2014-10-11 08:01:50 -04:00
Matthias Clasen
7b20bb917f
inspector: Small improvements to the resource tab
...
Move the close button to the header bar and center the info grid.
2014-10-11 00:59:36 -04:00
Matthias Clasen
a5846645d1
inspector: Cosmetic fixes
...
Set scrollbars and shadows consistently.
2014-10-11 00:59:36 -04:00
Matthias Clasen
d2c0f37a69
inspector: Cosmetic fixes
...
Add a missing shadow in the css editor.
2014-10-11 00:59:36 -04:00
Matthias Clasen
326f0aad5d
inspector: Cosmetic fixes
...
Expand the resource list initially.
2014-10-11 00:59:36 -04:00
Matthias Clasen
dffceb1a17
inspector: Avoid a split pane for objects
...
Like for the resources page, use a separate page for details
to gain more room for both the tree and the details.
2014-10-11 00:59:36 -04:00
Matthias Clasen
a8dc098699
inspector: More refactoring
...
Rename widget tree to object tree. It contains plenty of
non-widgets nowadays, after all.
2014-10-11 00:59:36 -04:00
Matthias Clasen
6194c90f74
inspector: More refactoring
...
Get rid of gtk_inspector_widget_tree_get_selected_object,
we can just pass the selected object along with the changed
signal.
2014-10-11 00:59:36 -04:00
Matthias Clasen
e8f9e7d472
inspector: Small reshuffling
...
Move the scrolled window into GtkInspectorWidgetTree.
2014-10-11 00:59:36 -04:00
Matthias Clasen
bee90aa8c8
inspector: Drop unused python shell code
...
This is getting in the way; if somebody comes by who wants
to add scripting support back, we can resurrect this.
2014-10-11 00:59:36 -04:00
Matthias Clasen
ee99ca6610
inspector: Avoid a split pane for resources
...
There is not much room in the inspector window; squeezing a
tree and a detailed view in the same page is not great. Instead,
make the details a separate page.
2014-10-11 00:59:36 -04:00
Matthias Clasen
0c77879bd0
inspector: Add more data to resource list
2014-10-11 00:59:36 -04:00
Matthias Clasen
6bbedfe5f3
inspector: Fix up resource tab appearance
...
Now that it is not in a notebook anymore, we lost the view
class in the background. Add it back.
2014-10-11 00:59:36 -04:00
Matthias Clasen
6128082f20
inspector: Save some more space
...
Instead of nesting two notebooks, use a stack switcher in
the headerbar for the outer notebook. This saves valuable
vertical space.
2014-10-11 00:59:36 -04:00
Matthias Clasen
4222e8d713
inspector: Drop the button path
...
The button path takes up quite a bit of room, and is not _that_
useful. If this information is useful, it can find a new home
on the misc tab.
2014-10-11 00:59:36 -04:00
Matthias Clasen
5a0dc74ded
Inspector: Use text attributes for monospace labels
2014-10-07 00:42:46 -04:00
Matthias Clasen
0c02bc4239
Inspector: Use the new monospace support
2014-10-07 00:42:21 -04:00
Matthias Clasen
72a809be0a
inspector: Down the model tree
...
Show nested tree models, inside filter or sort models. Without
this, you can't get at the data.
2014-10-04 11:53:14 -04:00
Matthias Clasen
051eedcea1
Small code rearrangement
2014-10-04 11:43:50 -04:00
Matthias Clasen
fee46bda00
inspector: Fix a thinko
...
We still need to possibly scan the toplevel after selecting
a widget, since we don't monitor the list of toplevels, so
the window may not be in our tree yet. This was broken in
commit e7bd73f2b0
.
2014-10-03 22:12:54 -04:00
Matthias Clasen
05a9006715
inspector: Better typography
...
Use U+201C/U+201D for quoting.
https://bugzilla.gnome.org/show_bug.cgi?id=735192
2014-09-29 23:05:22 -04:00
Matthias Clasen
5da91504da
inspector: Drop an unused variable
2014-09-26 11:15:25 -04:00
Matthias Clasen
e7bd73f2b0
inspector: Simplify populating the tree
...
No need to loop toplevels in two places.
2014-09-26 09:50:33 -04:00
Matthias Clasen
1041f93f7f
inspector: life-cycle fixes
...
When closing the inspector before the main window, we must take
care to sever all signal connections and weak refs, otherwise
things will go bad when the window is closed later.
2014-09-25 23:05:15 -04:00
Matthias Clasen
eb96a7f832
inspector: Show the source of settings
...
This can be useful at times to see if a setting is coming
from an XSetting, or overridden by the application.
https://bugzilla.gnome.org/show_bug.cgi?id=736971
2014-09-22 19:40:49 -04:00
Sébastien Wilmet
2ebe813c98
inspector: remove g_message()
...
It was probably added for debugging purposes.
https://bugzilla.gnome.org/show_bug.cgi?id=736557
2014-09-22 15:51:41 +02:00
Matthias Clasen
fb126586ed
inspector: Avoid a crash
...
We were forgetting to free the hash table, which then gave
us weak ref notifies at an unexpected time.
https://bugzilla.gnome.org/show_bug.cgi?id=737026
2014-09-20 19:30:45 -04:00
Bastien Nocera
355afc8f56
inspector: Show hidden windows in the inspector
...
This allows us to access otherwise hidden windows, which can be
useful to provide better debug information than would be available
through other means.
https://bugzilla.gnome.org/show_bug.cgi?id=736557
2014-09-14 08:47:05 -04:00
Matthias Clasen
3ad8bae1c4
inspector: Fix initial state of dark switch
...
Noticed while debugging a totem problem.
2014-09-14 08:38:28 -04:00
Timm Bäder
53014d0132
inspector: Don't unref NULL objects
...
When closing the application window before closing the inspector window,
the selected widget will be set to NULL once and all the property pages
will try to g_object_weak_unref that NULL widget, so bail out in
gtk_inspector_prop_list_set_object if it's NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=736201
2014-09-06 21:35:23 -04:00
Matthias Clasen
98c87dc6ed
inspector: Fix fallout from function renaming
2014-09-06 12:47:41 -04:00
Timm Bäder
a4d9eccbc6
inspector: Show widget allocation
...
https://bugzilla.gnome.org/show_bug.cgi?id=736191
2014-09-06 11:39:48 -04:00
Matthias Clasen
c88c16d1f4
inspector: Fix various compiler warnings
...
Mostly missing declarations and missing statics.
2014-09-05 20:52:03 -04:00
Matthias Clasen
e742c0447e
inspector: Add .ui.h files to git
...
Tools like damn-lies rely on being able to generate .pot files
from pristine checkouts, so everything that goes into the .pot
file has to be in git. This is not ideal, but we already do
the same for other .ui.h files in GTK+.
2014-09-02 09:53:51 -04:00
Matthias Clasen
29826d5489
Keep .ui.h files out of BUILT_SOURCES AND MAINTAINERCLEANFILES
...
Otherwise, git.mk will add them to .gitignore, and we want to
add them to source control for the benefit of tools like damn-lies
which rely on being able to generate a .pot file from a pristine
checkout.,
2014-09-02 09:53:51 -04:00
Matthias Clasen
0c417dfc30
inspector: Prevent looping when picking widgets
...
What was happening that the button press event that we use
to select a widget caused another clicked signal emission of
the inspect button, starting another pick action.
2014-09-01 11:39:08 -04:00
Sébastien Wilmet
6525a11b8d
inspector: fix a crash in the CSS editor
...
gtk_css_section_get_end_position() can return a position one byte beyond
the end of the last line.
gtk_text_buffer_get_iter_at_line_index() accepts only valid
line_number/byte_index pairs. Another solution is to make the
GtkTextBuffer function less strict, by returning a boolean if the exact
position was found.
The CSS parser should also be fixed to always return valid positions.
But it's better to have a safety net in the CSS editor, just in case (a
warning could be print).
https://bugzilla.gnome.org/show_bug.cgi?id=735337
2014-08-25 14:25:09 +02:00
Rico Tzschichholz
62254ca306
util/extract-strings: Use autotools syntax for building
...
Always refer to it as "extract-strings$(EXEEXT)" where needed to take
cross-compilation into account.
https://bugzilla.gnome.org/show_bug.cgi?id=731013
2014-08-15 12:09:54 -04:00
Rico Tzschichholz
f4a29fbfc2
Revert "Bug 731013 - cross-compilation broken when building extract-strings"
...
This reverts commit 651d9e90e7
.
The commit broke 'make dist' - the extract-strings sources are no
longer included in the tarball.
2014-08-15 12:09:44 -04:00
Руслан Ижбулатов
a0faf5a51c
Fix various warnings
...
https://bugzilla.gnome.org/show_bug.cgi?id=734737
2014-08-13 23:41:56 +00:00
Jehan
651d9e90e7
Bug 731013 - cross-compilation broken when building extract-strings
...
It is actually a bad idea to use noinst_PROGRAMS for build tools,
because it adds a $(EXEEXT). It is best to override the all target
with all-local to trigger the tool build.
2014-08-13 21:03:51 +00:00
Matthias Clasen
f0632d5ced
inspector: Add a switch to turn off animations
...
This may be useful in some places to check that application-specific
animations respect this setting.
2014-08-05 00:03:37 +02:00
Matthias Clasen
d7850e8be0
inspector: Add GtkTreeSelection to the object tree
...
It is not accessible, otherwise.
2014-08-03 01:28:23 +02:00
Matthias Clasen
bd7e7d1dd6
inspector: Make the action editor more useful
...
We were not finding the action owner for menuitems, we have to
try harder to walk all the way up to the window.
2014-07-30 23:46:13 +02:00
Matthias Clasen
0f47ffb6f5
inspector: Set a filename for saving css
...
This is good practice when using save dialogs.
2014-07-29 13:59:02 +02:00
Matthias Clasen
d97fd540ac
inspector: Show the buildable ID in the misc tab
...
This is useful, since you sometimes want to use it as #id in css.
2014-07-24 08:29:12 -04:00
Matthias Clasen
3e82b77d7d
inspector: Prepare misc tab for showing non-widgets
...
This will happen in the near future.
2014-07-24 08:14:54 -04:00
Matthias Clasen
0d71478237
inspector: Offer Raleigh as a theme
...
As long as it is included, might as well offer it.
2014-07-21 14:13:06 -04:00
Matthias Clasen
2a7577d23a
inspector: Show misc info
...
Add yet another tab for showing information about a widget that
does not quite fit into any of the other tabs (not a property,
not style information, etc...).
For now, we show the widget state, as well as the default and
focus widget for windows.
2014-07-21 11:18:29 -04:00
Matthias Clasen
70e898bc90
inspector: Add a font button to the visual tab
...
The font was already settable via the gtk-font-name property
of the settings object, but this this much more convenient.
2014-07-19 19:15:58 -04:00
Matthias Clasen
ea9026e3a0
Inspector: Show directory sizes in the resource tab
...
This is makes it easy to answer the question: how much do resources
cost. It turns out that all the resources in GTK+ currently weigh
around 1MB.
2014-07-19 01:20:28 -04:00
Chun-wei Fan
64e5d6ee3a
gtk-inspector: size-groups.c: Fix build on pre-C99
...
Declare variables at the top of the block.
2014-07-16 17:58:20 +08:00
Matthias Clasen
d35f664b1a
inspector: Make values in general tab selectable
2014-07-13 16:08:44 -04:00
Matthias Clasen
639180790f
inspector: Make listbox rows non-activatable
2014-07-13 16:03:32 -04:00
Stefano Facchini
cef6f34fb7
inspector: Do not accidentally change tab in the object notebook
...
The "hide-and-show" dance makes the notebook select the next tab.
https://bugzilla.gnome.org/show_bug.cgi?id=733092
2014-07-13 15:19:27 -04:00
Matthias Clasen
91133fc14c
inspector: Reshuffle Visual and General tabs
...
Move the touchscreen switch to the other debug switches, and
move the hidpi spin to the other graphical controls. Since the
Visual tab is getting large, make it scroll. The General tab
is purely informational again.
2014-07-12 01:45:44 -04:00
Matthias Clasen
4ef2f24c75
inspector: Reshuffle visual tab
2014-07-12 00:17:43 -04:00
Matthias Clasen
dfb2b6328e
inspector: Reorder tabs
...
Move Resources next to Objects, and Visual next to General.
2014-07-12 00:10:59 -04:00
Matthias Clasen
c526634fdb
inspector: Fix the build
...
I forgot to test the previous commit with -Wimplicit-function-delcaration,
and it promptly broke.
2014-07-11 23:45:18 -04:00
Matthias Clasen
f8986d9aa7
inspector: Clean up includes
...
Don't include gtk.h, instead include individual headers.
And include config.h and gi18n-lib.h everywhere.
2014-07-11 23:14:04 -04:00
Matthias Clasen
28998425d9
inspector: Don't mark environment variables for translations
...
These names don't change with the locale, after all.
2014-07-11 22:29:58 -04:00
Matthias Clasen
deefe3cd6a
inspector: Add comments
...
The binding support pokes some not-quite-official (or entirely
private) implementation details. Add comment to warn about this.
2014-07-11 10:27:00 -04:00
Matthias Clasen
f4b961c6ac
inspector: Show settings bindings
...
Similar to the previous commit, show settings bindings for
properties in the property editor.
2014-07-11 00:48:51 -04:00
Matthias Clasen
d8880bf7ab
inspector: Show property bindings
...
This commit add information about existing bindings to the
property editor.
2014-07-10 23:57:37 -04:00
Matthias Clasen
425d785de5
inspector: Allow setting hidpi scale
2014-07-10 18:36:16 -04:00
Matthias Clasen
614412e913
inspector: Show GSETTINGS_SCHEMA_DIR when set
2014-07-10 17:37:26 -04:00
Matthias Clasen
8883074497
inspector: Disable non-functional controls
...
Some of the features we expose can be hardcoded via environment
variables. In that case, don't confuse the user by letting them
change settings that have no effect.
2014-07-10 10:33:27 -04:00
Matthias Clasen
7fa4d60bf3
inspector: Add a switch for simulating touch
...
This makes it easy to test test touchscreen features with a
plain old mouse.
2014-07-10 10:12:02 -04:00
Rico Tzschichholz
eec6deba90
build: Fix make dist
2014-07-08 10:13:39 +02:00
Matthias Clasen
b0390a3349
GtkInspector: Add a function to select the widget under the pointer
2014-07-06 22:37:57 -04:00
Matthias Clasen
2a053cc6c3
GtkInspector: Add a style tab
...
This tab shows css properties of a widget, and their origin.
2014-07-06 22:37:57 -04:00
Matthias Clasen
bb6f406f13
inspector: Use a better icon on the css classes tab
2014-06-30 18:51:39 -04:00
Matthias Clasen
af507be99b
inspector: Chain up in constructed
...
Its the right thing to do.
2014-06-27 18:44:36 -04:00
Chun-wei Fan
cf8eaebc07
GtkInspector: Use Adwaita by Default on Windows Too
...
As we are using Adwaita by default on all platforms, do the same for
GtkInspector, to be consistent with the rest of GTK+.
2014-06-16 12:07:04 +08:00
Matthias Clasen
aba6871dba
inspector: Use Adwaita as default theme
2014-06-14 00:15:09 -04:00
Matthias Clasen
2e5cda99f8
inspector: Allow Escape to cancel picking
2014-06-13 06:10:23 -04:00
Matthias Clasen
404149b2bf
inspector: Use a better icon for the picker
...
Recommended by Allan Day.
2014-06-13 06:10:23 -04:00
Matthias Clasen
b0c6263f6c
inspector: Add combobox popups to the tree
2014-06-10 08:54:12 -04:00
Matthias Clasen
634972e063
inspector: Add submenus to the tree
2014-06-10 08:54:12 -04:00
Juan R. Garcia Blanco
15c34b22d2
inspector: Fix build with quartz backend
...
Add -xobjective-c to libgtkinspector_la_CFLAGS to handle objc headers.
2014-06-08 11:52:45 +02:00
Matthias Clasen
3266b4dd9b
inspector: Make picking more robust
...
Apparently ClutterOffscreen returns NULL as a window.
While that is not cool, we shouldn't crash.
2014-06-06 13:35:40 -04:00
Matthias Clasen
763f0a37c1
inspector: Avoid a crash
...
An unset action-name should not cause us to crash.
2014-06-05 21:08:56 -04:00
Matthias Clasen
14d1a5cba4
inspector: Make GMenu content show up
...
My problem was that all the content is usually hidden away
in sections, so without recursion, nothing shows up. So,
implement the recursion then.
2014-06-05 09:29:18 -04:00
Matthias Clasen
af8bd96e6e
Forgotten file
2014-06-05 08:35:07 -04:00
Matthias Clasen
2346ccde43
inspector: show GMenus
...
This does not quite work yet, and I have no idea why.
2014-06-05 08:32:15 -04:00
Matthias Clasen
582504cc33
inspector: Actually destroy the property editors
...
We were never finalizing any of the popovers used for editing
properties. Fix that.
2014-06-05 05:57:50 -04:00
Matthias Clasen
7a8092998a
inspector: Fix a memory leak
2014-06-05 05:57:50 -04:00
Matthias Clasen
27f692da2d
inspector: Add an initial action editor
...
Use a popup, like we do for properties. For now, it allows
activating the action (with parameter, if necessary) and
setting the state.
2014-06-05 05:57:49 -04:00
Matthias Clasen
23aeb955ce
inspector: Lower the inspector window when picking
...
This avoids the problem of the inspector window covering the
widget you want to pick.
2014-06-04 20:29:10 -04:00
Matthias Clasen
205e8f7e58
inspector: Show the widget tree when picking
...
Makes more sense that way.
2014-06-04 20:12:42 -04:00
Matthias Clasen
1c232066b8
inspector: Go to the desired tab
...
We were setting the next-tab properly, but were trying to
read it off the wrong object. Now, going from a cell renderer
attribute mapping to the model, or from an action-name to the
action actually works.
2014-06-04 19:28:24 -04:00
Matthias Clasen
f6cf7fee73
inspector: Parse custom css with a delay
...
The CSS editor was feeling a little sluggish, because it was
reparsing and reapplying the CSS on every keystroke. Add a small
delay, to make this feel smoother.
2014-06-03 09:44:28 -04:00
Chun-wei Fan
61b9bcf1d5
MSVC Projects: "Generate" the gtk-inspector Projects
...
Like the GDK and GTK portions, use autotools scripts to generate the
complete projects for gtk-inspector as sources there seem to change from
time to time.
It might be so that this, like the a11y sources, will be referenced from
the main Makefile.am of GTK directly, but just do this so that the
projects can build properly.
2014-06-03 17:03:40 +08:00
Matthias Clasen
921b6519f1
inspector: better type detection for resources
...
Pass the name to g_content_type_guess. With this, most
CSS gets sniffed as C source code.
2014-05-30 23:45:11 -04:00
Matthias Clasen
e4ba5b6ab6
inspector: Go to the right tab when changing objects
...
When going from attribute mapping to model, it makes most sense
to go directly to the data tab, and when going from an action
name to the owner, we want to show the actions tab. Make it so.
2014-05-30 23:22:29 -04:00
Matthias Clasen
5ed6653859
inspector: Allow jumping to actions
...
The property editor for action-name properties now offers
to go to the object where the action is defined.
2014-05-30 23:22:29 -04:00
Matthias Clasen
d33ff810cc
inspector: Trivial string change
...
'Size Groups' looks better than 'Sizegroups'.
2014-05-30 23:22:29 -04:00
Matthias Clasen
bb9bf4b408
inspector: Handle attribute mapping changes better
...
When the mapping is changed, notify the property and
queue a draw on the widget. This makes both the inspector
and the app update their display.
2014-05-30 21:56:07 -04:00
Matthias Clasen
2e4c87038e
inspector: some code reshuffling
2014-05-30 21:35:39 -04:00
Matthias Clasen
6a9ea3487e
inspector: Support saving CSS
...
We have a file chooser, lets use it.
2014-05-30 20:35:43 -04:00
Matthias Clasen
a28d2cb923
Move extract-strings to its own directory
...
This will hopefully help resolve the circular dependency between
libgtk linking against inspector/libgtkinspector and inspector/
needing extract-strings from gtk/.
I didn't preserve the EXEEXT decorations in this operation -
automake gave me stern warnings about it, so I just dropped them
all. Somebody who cross-builds GTK+ will have to reconstruct this.
2014-05-27 17:28:10 -04:00
Matthias Clasen
ea2d20e313
Fix distcheck
2014-05-27 15:14:02 -04:00
Carlos Garnacho
2e903243c6
eventcontroller: Make the event-mask property and methods private.
...
This will rarely have any use if no subclassing is allowed, so just make it
private for our own.
2014-05-27 17:47:12 +02:00
Matthias Clasen
8230299748
inspector: Allow changing attribute mappings
2014-05-24 23:31:54 -04:00
Matthias Clasen
a13d12a445
inspector: Make picking widgets work again
...
This broke when I accidentally removed the line that adds
each object to the hash table. Bring it back.
2014-05-24 09:55:41 -04:00
Matthias Clasen
51a09af076
inspector: Treat resources the same as in gtk/
2014-05-23 23:00:43 -04:00
Matthias Clasen
a47d0406a7
inspector: Add more complete gesture support
...
Add a dedicated tab that shows how gestures are grouped,
and allows changing the propagation phase.
2014-05-23 19:54:32 +02:00
Matthias Clasen
1c5f14a9e4
inspector: Minimal support for gestures
...
We're just showing them as objects in the tree, for now.
2014-05-23 19:54:32 +02:00
Matthias Clasen
372e551a66
inspector: avoid a warning on destroy
...
We are only hiding the window now, so a memory management
error has crept into the destroy path.
2014-05-22 18:37:43 -04:00
Matthias Clasen
49cf5142ba
Deprecate GdkColor
...
It has been replaced by GdkRGBA. Time to make it official.
http://bugzilla.gnome.org/show_bug.cgi?id=636695
2014-05-22 09:09:55 -04:00
Yosef Or Boczko
02d92ff831
inspector: Use the new support for RTL icons in GtkIconTheme
...
https://bugzilla.gnome.org/show_bug.cgi?id=730526
2014-05-21 21:07:05 +03:00
Matthias Clasen
11abc517f5
inspector: Avoid weak ref problems
...
We know the objects in a size group are always widgets, so we
can avoid hard-to-track down problems with weak references by
just cleaning up when the object gets destroyed. There is still
a chance that we show a widget as part of the group after it
has been removed, but size groups simply have no signals that
would let us avoid that.
2014-05-21 06:44:44 -04:00
Matthias Clasen
d39ee6c81c
inspector: Simplify object life-cycle handling
...
The prop-list doesn't use the object column in its model,
so don't put the object there. And don't leak stuff on
finalize.
2014-05-21 06:44:44 -04:00
Matthias Clasen
3d8b0514bb
inspector: Use an emission hook instead of signal handlers
...
This is slightly easier to manage, and there's only two emission
hooks overall, instead of two signal handlers per object.
2014-05-21 06:44:44 -04:00
Matthias Clasen
af8fdac001
inspector: Show size groups
...
Add a tab that shows size groups of a widget. The properties
of the size group are available here, as well as the widgets
that are part of the size group. We highlight the widgets in
the application when their row in the inspector is hovered.
2014-05-20 21:44:48 -04:00
Matthias Clasen
538b987bc5
inspector: Add a way to highlight widgets
...
In contrast to the flashing, where we blink the widget a
few times, this is explicitly turned on and off.
It will be used for indicating widgets that are part of
a size group, in the next commit.
2014-05-20 21:43:00 -04:00
Yosef Or Boczko
65c9e2a651
inspector: Use symbolic icon everywhere
...
https://bugzilla.gnome.org/show_bug.cgi?id=730465
2014-05-20 16:21:28 -04:00
Yosef Or Boczko
83d43d0cfe
inspector: Expand tabs in the objects section
...
https://bugzilla.gnome.org/show_bug.cgi?id=730465
2014-05-20 16:21:28 -04:00
Yosef Or Boczko
c6a9c1231b
inspector: Expand the general tabs
...
https://bugzilla.gnome.org/show_bug.cgi?id=730465
2014-05-20 16:21:28 -04:00
Matthias Clasen
d606021c34
inspector: Avoid a compiler warning
...
...and a pointless cast, too.
2014-05-20 09:54:01 -04:00
Matthias Clasen
c665564374
inspector: Build out the resource information
...
Show type and size for each resource.
2014-05-19 07:10:33 -04:00
Matthias Clasen
8c0b1697e6
inspector: string fixes
...
Mark user-visible strings for translation in the new property editor.
2014-05-19 00:17:23 -04:00
Matthias Clasen
9a23fd3313
inspector: Link to model for attributes
2014-05-19 00:13:30 -04:00
Matthias Clasen
34a87ee2f3
inspector: redo property editing
...
Move away from cell editing, and use a popover instead. This makes
it easier to e.g. use a color chooser - there's just not enough room
in a cell for many things.
Much of this code is adapted from tests/prop-editor.c.
2014-05-18 11:43:13 -04:00
Matthias Clasen
70bec41f6c
inspector: Allow sorting signals
2014-05-17 15:39:46 -04:00
Matthias Clasen
3d0b149e3b
inspector: Allow sorting properties by origin
2014-05-17 15:35:10 -04:00
Matthias Clasen
2bf654b352
inspector: Drop an unused widget
2014-05-16 20:49:06 -04:00
Matthias Clasen
12f5cfac19
Trivial syntax fix
2014-05-16 14:30:34 -04:00
Chun-wei Fan
7ea0e2756a
GtkInspector: Fix Build on Windows
...
Update visual.c to use Windows themes rather than the stock Raleigh theme,
and avoid hardcoding data paths for Windows (and Mac). As the dlfcn.h
functions are only used when Python is enabled, move its inclusion there[*].
Also ensure that variables are declared on the top of the block.
[*] Python support Windows needs to be investigated, as POSIX signal
handling is used there.
https://bugzilla.gnome.org/show_bug.cgi?id=730236
2014-05-16 23:50:20 +08:00
Matthias Clasen
63e7fe3d60
inspector: Show tree model contents
2014-05-16 00:28:17 -04:00
Matthias Clasen
ee06b932d3
inspector: Set a window icon
2014-05-15 22:53:23 -04:00
Matthias Clasen
fa80bb2324
inspector: Improve actions tab
...
React to action group changes, and allow changing action states.
2014-05-15 22:37:30 -04:00
Matthias Clasen
906e4adb5a
inspector: ellipsize long paths
2014-05-15 22:37:30 -04:00
Matthias Clasen
e84a523750
inspector: Show resources
...
Show a list of all registered resources. If a resource looks
like text or an image, we show its content.
2014-05-15 19:36:12 -04:00
Matthias Clasen
d52a01631e
inspector: Redraw when visual debugging tools are toggled
...
This doesn't address the pixel cache yet.
2014-05-15 19:36:12 -04:00