]> Pileus Git - ~andy/gtk/log
~andy/gtk
14 years agoDeprecated GtkNotebook tab packing
Christian Dywan [Wed, 21 Oct 2009 16:25:02 +0000 (18:25 +0200)]
Deprecated GtkNotebook tab packing

https://bugzilla.gnome.org/show_bug.cgi?id=596083

14 years agoDeprecate GtkCurve and GtkGammaCurve
Christian Dywan [Wed, 21 Oct 2009 16:15:52 +0000 (18:15 +0200)]
Deprecate GtkCurve and GtkGammaCurve

https://bugzilla.gnome.org/show_bug.cgi?id=556263

14 years agoAdded accesor for GTK_VIEWPORT (widget)->bin_window
Christian Dywan [Wed, 21 Oct 2009 16:12:01 +0000 (18:12 +0200)]
Added accesor for GTK_VIEWPORT (widget)->bin_window

Although, you can use:
gtk_widget_get_parent_window (gtk_bin_get_child (GTK_BIN (widget)))
there already are gtk_tree_view_get_bin_window() and
gtk_layout_get_bin_window() in GTK+ api.

https://bugzilla.gnome.org/show_bug.cgi?id=594960

14 years agoFix a compilation warning
Javier Jardón [Wed, 21 Oct 2009 00:55:46 +0000 (02:55 +0200)]
Fix a compilation warning

Use switch instead if's to get a default value

14 years agoFix a compilation warning
Javier Jardón [Tue, 20 Oct 2009 02:08:00 +0000 (04:08 +0200)]
Fix a compilation warning

Reorder the function so the "lookup_context" variable can't be
used uninitialized

14 years agoFix some compilation warning
Javier Jardón [Wed, 21 Oct 2009 00:37:05 +0000 (02:37 +0200)]
Fix some compilation warning

Complete the previous patch: set lower to 0 too

14 years agoFix some compilation warning
Javier Jardón [Wed, 21 Oct 2009 00:07:26 +0000 (02:07 +0200)]
Fix some compilation warning

Added some default cases and assert if reached

14 years agoFix a compilation warning
Javier Jardón [Tue, 20 Oct 2009 02:06:05 +0000 (04:06 +0200)]
Fix a compilation warning

Use parenthesis in a expression with "&" operator

14 years agoFix a compilation warning
Javier Jardón [Tue, 20 Oct 2009 18:43:44 +0000 (20:43 +0200)]
Fix a compilation warning

Catch the returned value of write()

14 years agoFix compilation warning
Javier Jardón [Tue, 20 Oct 2009 02:01:52 +0000 (04:01 +0200)]
Fix compilation warning

Use g_get_current_dir() instead getcwd()

14 years agoRemove some unnused variables
Javier Jardón [Tue, 20 Oct 2009 02:00:02 +0000 (04:00 +0200)]
Remove some unnused variables

14 years agoA small correction of previous commit
Marek Kasik [Mon, 19 Oct 2009 09:44:09 +0000 (11:44 +0200)]
A small correction of previous commit

Correct of a typo.

14 years agoCorrect a small oversight
Matthias Clasen [Mon, 19 Oct 2009 00:38:28 +0000 (20:38 -0400)]
Correct a small oversight

When changing themes, we also need to update the box spacing of
tooltips.

14 years agoUse correct size for root window with multiple monitors
Tor Lillqvist [Sun, 18 Oct 2009 11:35:17 +0000 (14:35 +0300)]
Use correct size for root window with multiple monitors

The root window width and height have already been correctly
initialised in _gdk_root_window_size_init() to cover all monitors, so
don't incorrectly re-initialise using GetSystemMetrics(SM_C[XY]SCREEN)
which only gives the size of the primary monitor anyway. (See MSDN.)

This fixes at least gdk_screen_get_{width,height}() which indirectly
affects at least the positioning of combo box pop-up menus on multiple
monitors.

14 years agoDelete a couple of leftover commented-out lines
Tor Lillqvist [Sun, 18 Oct 2009 11:19:55 +0000 (14:19 +0300)]
Delete a couple of leftover commented-out lines

14 years agoAdd missing newline to debugging output
Tor Lillqvist [Sun, 18 Oct 2009 11:19:24 +0000 (14:19 +0300)]
Add missing newline to debugging output

14 years agoDelete unused leftover static function
Tor Lillqvist [Sun, 18 Oct 2009 09:08:18 +0000 (12:08 +0300)]
Delete unused leftover static function

14 years agoMore meaningful debugging output in gdk_win32_window_get_root_coords
Tor Lillqvist [Sun, 18 Oct 2009 09:06:29 +0000 (12:06 +0300)]
More meaningful debugging output in gdk_win32_window_get_root_coords

14 years agoRemove unused variables and static functions
Tor Lillqvist [Sun, 18 Oct 2009 08:51:57 +0000 (11:51 +0300)]
Remove unused variables and static functions

14 years agoCorrect function names in debugging output
Tor Lillqvist [Sun, 18 Oct 2009 08:43:33 +0000 (11:43 +0300)]
Correct function names in debugging output

14 years agoDon't omit GTK_ICON_SIZE_DIALOG
Matthias Clasen [Sun, 18 Oct 2009 06:07:58 +0000 (02:07 -0400)]
Don't omit GTK_ICON_SIZE_DIALOG

14 years agoFix a problem in GtkImage size allocation
Matthias Clasen [Sun, 18 Oct 2009 05:36:14 +0000 (01:36 -0400)]
Fix a problem in GtkImage size allocation

When GtkMisc padding is set on an image, the optimization for only
recalculating size after a clear() breaks, since the requisition is
not (0, 0). We need a separate 'need_calc' flag.

14 years agoUpdated Greek translation
Simos Xenitellis [Sat, 17 Oct 2009 14:30:28 +0000 (17:30 +0300)]
Updated Greek translation

14 years agoUpdated Spanish translation
Jorge González [Sat, 17 Oct 2009 11:45:01 +0000 (13:45 +0200)]
Updated Spanish translation

14 years agoUndefine GTK_DISABLE_DEPRECATED in testinput to keep it compiling
Christian Dywan [Fri, 16 Oct 2009 16:45:53 +0000 (18:45 +0200)]
Undefine GTK_DISABLE_DEPRECATED in testinput to keep it compiling

14 years agoDeprecate GtkInputDialog
Christian Dywan [Fri, 16 Oct 2009 14:05:13 +0000 (16:05 +0200)]
Deprecate GtkInputDialog

Deprecate the widget and adjust the documentation.

https://bugzilla.gnome.org/show_bug.cgi?id=594903

14 years agoFix build on Windows
Tor Lillqvist [Fri, 16 Oct 2009 10:29:54 +0000 (13:29 +0300)]
Fix build on Windows

14 years agoUse G_BEGIN/END_DECLS in gtkcellrendererspinner.h
Debarshi Ray [Thu, 15 Oct 2009 21:22:20 +0000 (00:22 +0300)]
Use G_BEGIN/END_DECLS in gtkcellrendererspinner.h

14 years agoFix thinkos in which fields get used
Federico Mena Quintero [Wed, 30 Sep 2009 23:49:33 +0000 (18:49 -0500)]
Fix thinkos in which fields get used

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoOops, it's gsize, not GSize
Federico Mena Quintero [Wed, 30 Sep 2009 23:39:33 +0000 (18:39 -0500)]
Oops, it's gsize, not GSize

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoFix a g_strdup_printf()
Federico Mena Quintero [Wed, 30 Sep 2009 22:55:12 +0000 (17:55 -0500)]
Fix a g_strdup_printf()

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoPut the list of column types in a macro
Federico Mena Quintero [Fri, 11 Sep 2009 19:28:36 +0000 (14:28 -0500)]
Put the list of column types in a macro

Every call to _gtk_file_system_model_new*() gets the same list of column types,
so we now keep the list in a macro instead of having duplicated copies all around.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoClarify the arguments of g_file_query_info_async()
Federico Mena Quintero [Fri, 11 Sep 2009 19:20:19 +0000 (14:20 -0500)]
Clarify the arguments of g_file_query_info_async()

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoMake copy_attribute() a function instead of a macro
Federico Mena Quintero [Fri, 11 Sep 2009 18:32:08 +0000 (13:32 -0500)]
Make copy_attribute() a function instead of a macro

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoDon't leak a treepath if the treeview is not populated yet
Federico Mena Quintero [Fri, 11 Sep 2009 18:25:29 +0000 (13:25 -0500)]
Don't leak a treepath if the treeview is not populated yet

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoFactor out function to set a fixed size for the icon cell renderers
Federico Mena Quintero [Fri, 11 Sep 2009 18:14:49 +0000 (13:14 -0500)]
Factor out function to set a fixed size for the icon cell renderers

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoComment that the column order needs to be kept in sync across two functions
Federico Mena Quintero [Fri, 11 Sep 2009 18:08:11 +0000 (13:08 -0500)]
Comment that the column order needs to be kept in sync across two functions

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoFix typo in a comment
Federico Mena Quintero [Fri, 11 Sep 2009 18:03:34 +0000 (13:03 -0500)]
Fix typo in a comment

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoMake get_selected_file() return a ref'ed file
Federico Mena Quintero [Fri, 11 Sep 2009 17:44:21 +0000 (12:44 -0500)]
Make get_selected_file() return a ref'ed file

The old semantics was to return a GFile* owned by the file system model; the new
semantics is to hand out new references whenever possible.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoIn set_filter(), handle the case where the new filter is the same as the old filter
Federico Mena Quintero [Thu, 10 Sep 2009 22:22:12 +0000 (17:22 -0500)]
In set_filter(), handle the case where the new filter is the same as the old filter

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agos/get_is_visible/iter_is_visible for clarity
Federico Mena Quintero [Thu, 10 Sep 2009 21:33:37 +0000 (16:33 -0500)]
s/get_is_visible/iter_is_visible for clarity

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoRemove obsolete comment
Federico Mena Quintero [Thu, 10 Sep 2009 20:36:15 +0000 (15:36 -0500)]
Remove obsolete comment

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoMake the code match the docs in _gtk_file_system_model_clear_cache()
Federico Mena Quintero [Fri, 4 Sep 2009 18:53:46 +0000 (13:53 -0500)]
Make the code match the docs in _gtk_file_system_model_clear_cache()

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoFree some missing fields in ::finalize()
Federico Mena Quintero [Fri, 4 Sep 2009 18:42:46 +0000 (13:42 -0500)]
Free some missing fields in ::finalize()

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoClarify variable names in gtk_file_system_model_sort()
Federico Mena Quintero [Fri, 4 Sep 2009 18:06:54 +0000 (13:06 -0500)]
Clarify variable names in gtk_file_system_model_sort()

To comply with the i -> indexes; r -> rows convention.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoNothing to do for ref/unref_node
Federico Mena Quintero [Fri, 4 Sep 2009 17:49:53 +0000 (12:49 -0500)]
Nothing to do for ref/unref_node

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoClarify a couple of spots with comments
Federico Mena Quintero [Fri, 4 Sep 2009 17:31:37 +0000 (12:31 -0500)]
Clarify a couple of spots with comments

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoClarify array indexes vs. row numbers
Federico Mena Quintero [Fri, 4 Sep 2009 17:01:16 +0000 (12:01 -0500)]
Clarify array indexes vs. row numbers

There was some confusion between "index" as used for the model->files[] array,
and node->index as used for our 1-based row numbers.  Now we use "index" only
for indices in the model->files[] array, and node->row for row numbers.  Functions
and variables are renamed to clarify whether they refer to indexes or rows.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoBig comment on how GtkFileSystemModel works
Federico Mena Quintero [Thu, 3 Sep 2009 23:22:21 +0000 (18:22 -0500)]
Big comment on how GtkFileSystemModel works

Let's have some documentation on the idea behind this beast...

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoRemove obsolete code to use a cached mime-type
Federico Mena Quintero [Thu, 3 Sep 2009 17:09:09 +0000 (12:09 -0500)]
Remove obsolete code to use a cached mime-type

The non-standard "filechooser::mime-type" was a remnant of the recent-files code using
a hand-built GFileInfo; now we just query the file info ourselves.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoFix thinko in node_should_be_visible()
Federico Mena Quintero [Wed, 2 Sep 2009 23:26:00 +0000 (18:26 -0500)]
Fix thinko in node_should_be_visible()

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoFactory out functions to emit row_inserted, row_changed, row_deleted
Federico Mena Quintero [Wed, 2 Sep 2009 22:10:46 +0000 (17:10 -0500)]
Factory out functions to emit row_inserted, row_changed, row_deleted

This is to avoid temporary variables for the path/iter and to avoid duplicated code.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoWhen updating a file, handle the case where the old file info is the same as the...
Federico Mena Quintero [Wed, 2 Sep 2009 20:23:21 +0000 (15:23 -0500)]
When updating a file, handle the case where the old file info is the same as the new one

This prevents us from inadvertently losing the last ref to the info.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoWhen removing a file, also remove it from the file_lookup hash table
Federico Mena Quintero [Wed, 2 Sep 2009 20:21:45 +0000 (15:21 -0500)]
When removing a file, also remove it from the file_lookup hash table

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoComment on how the file_lookup hash table gets rebuilt on demand
Federico Mena Quintero [Wed, 2 Sep 2009 19:51:02 +0000 (14:51 -0500)]
Comment on how the file_lookup hash table gets rebuilt on demand

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoClarify the arguments to g_file_query_info_async()
Federico Mena Quintero [Wed, 2 Sep 2009 18:54:52 +0000 (13:54 -0500)]
Clarify the arguments to g_file_query_info_async()

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoShow an error dialog when we can't read the folder's contents
Federico Mena Quintero [Wed, 2 Sep 2009 18:43:03 +0000 (13:43 -0500)]
Show an error dialog when we can't read the folder's contents

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoClarify the code flow in gtk_file_system_model_got_files()
Federico Mena Quintero [Mon, 31 Aug 2009 21:13:05 +0000 (16:13 -0500)]
Clarify the code flow in gtk_file_system_model_got_files()

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoRemove the dir_thaw_source while disposing the model
Federico Mena Quintero [Mon, 31 Aug 2009 20:53:45 +0000 (15:53 -0500)]
Remove the dir_thaw_source while disposing the model

Otherwise that timeout may trigger after the model has died.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoMake _gtk_file_system_model_remove_file() static
Federico Mena Quintero [Mon, 31 Aug 2009 20:11:44 +0000 (15:11 -0500)]
Make _gtk_file_system_model_remove_file() static

It was only used internally by the model.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoMake _gtk_file_system_model_add_file() static
Federico Mena Quintero [Mon, 31 Aug 2009 20:08:43 +0000 (15:08 -0500)]
Make _gtk_file_system_model_add_file() static

It was only used internally by the model, anyway.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoClarify the comments that some fields in GtkFileSystemModel can be NULL
Federico Mena Quintero [Thu, 27 Aug 2009 00:27:40 +0000 (19:27 -0500)]
Clarify the comments that some fields in GtkFileSystemModel can be NULL

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoClarify the arguments to g_file_monitor_directory()
Federico Mena Quintero [Thu, 27 Aug 2009 00:25:18 +0000 (19:25 -0500)]
Clarify the arguments to g_file_monitor_directory()

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoClarify an argument to g_file_enumerate_children_async()
Federico Mena Quintero [Thu, 27 Aug 2009 00:14:07 +0000 (19:14 -0500)]
Clarify an argument to g_file_enumerate_children_async()

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoFix and tighten an assertion
Federico Mena Quintero [Thu, 27 Aug 2009 00:10:51 +0000 (19:10 -0500)]
Fix and tighten an assertion

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoComplete the documentation string for _gtk_file_system_model_new()
Federico Mena Quintero [Thu, 27 Aug 2009 00:10:26 +0000 (19:10 -0500)]
Complete the documentation string for _gtk_file_system_model_new()

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoStart with a file array with a resonable preallocated size
Federico Mena Quintero [Wed, 26 Aug 2009 23:52:24 +0000 (18:52 -0500)]
Start with a file array with a resonable preallocated size

g_array_new() doesn't reserve any size by default, so during the initial population
of the file array, we'll do more reallocs than strictly needed.  We'll start with
a reasonable preallocated size, in this case the number of files which we can
get in a single chunk out of GIO.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoCompute the node size only once to avoid the scary macro
Federico Mena Quintero [Wed, 26 Aug 2009 23:42:49 +0000 (18:42 -0500)]
Compute the node size only once to avoid the scary macro

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agog_error() as soon as we catch an invalid column type
Federico Mena Quintero [Wed, 26 Aug 2009 23:38:03 +0000 (18:38 -0500)]
g_error() as soon as we catch an invalid column type

There's no point in running a GtkFileSystemModel with invalid column types.
This way we can also avoid clearing the memory of the column_types array.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
14 years agoImprove show_and_select_files() function
Benjamin Otte [Wed, 1 Jul 2009 08:32:26 +0000 (10:32 +0200)]
Improve show_and_select_files() function

The previous function enumerated the whole directory and used a lot of
outdated API to decide how to show files.
The new code queries the filesystem model to decide about this.
The now unused old functions were removed.

14 years agoRemove unused error argument from show_and_select_files()
Benjamin Otte [Thu, 25 Jun 2009 13:05:27 +0000 (15:05 +0200)]
Remove unused error argument from show_and_select_files()

14 years agoEnable the size column in recent files/search
Benjamin Otte [Thu, 25 Jun 2009 11:18:04 +0000 (13:18 +0200)]
Enable the size column in recent files/search

Previously information about file sizes was not available for search
results and recent files, so the column was always hidden. As this
information is now available, we can stop the special handling and use
the same setting as in browse mode.

14 years agoUse the faster accessor function in the sort functions
Benjamin Otte [Wed, 1 Jul 2009 08:20:04 +0000 (10:20 +0200)]
Use the faster accessor function in the sort functions

Use the faster _gtk_file_system_model_get_value() function instead of
gtk_tree_model_get() inside the sort functions. This gives a significant
speed-up when sorting large lists.
In a test case with 40.000 files, the sorting time went from ~5 seconds
to less than 0.5 seconds for my test case. There is 2 significant
problems with gtk_tree_model_get() that cause this:
1) The value is copied, which takes quite a bit of time for strings.
   ~25% of excessive time or ~1 second in my test
2) The tree model functions need to lookup the interface vfunc. And
   gtk_tree_model_get() doesn't do that only once, but multiple times
   (verifying column id, getting the actual value, ...)
   ~75% of excessive time or ~3 seconds in my test

14 years agoConvert recent files to a GtkFileSystemModel
Benjamin Otte [Wed, 24 Jun 2009 21:04:04 +0000 (23:04 +0200)]
Convert recent files to a GtkFileSystemModel

This does to the recent files what the last commit did to the search. It
uses a GtkFileSystemModel and its API niceties to show the recent files.

14 years agoConvert search to use a GtkFileSystemModel
Benjamin Otte [Wed, 24 Jun 2009 20:43:14 +0000 (22:43 +0200)]
Convert search to use a GtkFileSystemModel

Replace the list model code with the file system model and use all the
file system model API niceties we get from that.
Also adds the function _gtk_file_system_model_add_and_query_file() which
g_file_query_info()'s the file before adding it, so it gets added with
the right information.

14 years agoDon't count the "enter directory name" line as a selected file
Benjamin Otte [Wed, 24 Jun 2009 20:46:21 +0000 (22:46 +0200)]
Don't count the "enter directory name" line as a selected file

14 years agoAdd a constructor to filesystem model that does not monitor a directory
Benjamin Otte [Wed, 24 Jun 2009 16:41:03 +0000 (18:41 +0200)]
Add a constructor to filesystem model that does not monitor a directory

This is in preparation for switching search and recent models to use
GtkFileSystemModel

14 years agoMake the filesystem model filter API use a GtkFileFilter
Benjamin Otte [Wed, 24 Jun 2009 14:36:20 +0000 (16:36 +0200)]
Make the filesystem model filter API use a GtkFileFilter

This gets rid of the vfunc API and does exactly what the file chooser
wants.

14 years agoOnly query the absolutely necessary attributes
Benjamin Otte [Tue, 30 Jun 2009 21:45:39 +0000 (23:45 +0200)]
Only query the absolutely necessary attributes

Since the time taken by g_file_enumerate_children() depends a lot on the
attributes that are queried, we query the minimum attributes that need
to be queired to display the file chooser.

In particular, the attributes for loading the icon are ignored, as icons
are loaded on demand (see previous commit).

14 years agoLoad icons on-demand
Benjamin Otte [Tue, 30 Jun 2009 21:33:29 +0000 (23:33 +0200)]
Load icons on-demand

Because loading icons takes a noticable performance, this code loads the
pixbuf on demand and only loads icons for rows that are visible. There
is a few caveats to this:
- The pixbuf cell renderer must report the proer size even if the icon
  is not yet loaded. This is achieved by setting a fixed size.
- On theme changes the cahced pixbufs and the cell renderer must be
  updated to conform to the new theme.

14 years agoUse the GtkTreeSortable of the filesystem model
Benjamin Otte [Tue, 30 Jun 2009 21:17:26 +0000 (23:17 +0200)]
Use the GtkTreeSortable of the filesystem model

Previously, there was a GtkTreeSortModel wrapped around the filesystem
model to make it sortable. As the new implementation implements the
GtkTreeSortable interface, we can use this instead.

14 years agoClean up code to use the model directly
Benjamin Otte [Fri, 19 Jun 2009 20:36:26 +0000 (22:36 +0200)]
Clean up code to use the model directly

A lot of code special cases accesses to the tree view for the different
browse modes, which was previously necessary, because the models were
different. Now that they are identical in the first columns, there is no
such need anymore, and the functions don't need to be special cased.

14 years agoReplace the cell data computations
Benjamin Otte [Tue, 30 Jun 2009 20:58:55 +0000 (22:58 +0200)]
Replace the cell data computations

Previously custom functions were used to compute the data passed to the
cell renderers. Now that all this data is saved by the tree models with
compatible nodes, the usual default attribute-to-column mapping can be
used.
With this, caching of the values can happen in the tree model, which
avoids costly lookups of icons or computation of strings. Last but not
least it avoids spurious bugs that could happen when strings changed
without anyone noticing, like the mtime when a new day begins.

14 years agoConsolidate tree models for different browse modes
Benjamin Otte [Tue, 30 Jun 2009 19:24:52 +0000 (21:24 +0200)]
Consolidate tree models for different browse modes

All tree models in browse mode now share the first 10 column types
containing all the necessary information to display the model on screen.
Therefor it is now easy to just operate on the tree model associated
with the file tree view and in most cases it isn't necessary anymore to
special case the browse modes.

14 years agoSimplify gtk_file_chooser_default_unselect_file()
Benjamin Otte [Tue, 30 Jun 2009 19:10:07 +0000 (21:10 +0200)]
Simplify gtk_file_chooser_default_unselect_file()

14 years agoCreating the model no longer fails
Benjamin Otte [Wed, 1 Jul 2009 07:48:32 +0000 (09:48 +0200)]
Creating the model no longer fails

So remove the code that checked for failure, as it's not needed anymore.

14 years agoImplement new GtkFileSystemModel
Benjamin Otte [Tue, 30 Jun 2009 13:15:55 +0000 (15:15 +0200)]
Implement new GtkFileSystemModel

The new model is mostly API-compatible with the old model (minimal
changes were required), but is a lot faster and has a lot of very
desirable features.
- the model does no longer support a tree, just a list of files in a
  given directory
- the storage has been moved to a GArray as opposed to a tree
- no more dependency on GtkFileSystem
- columns are managed by the creator of the model, so any number of
  nodes can be added as needed. This also makes the API more similar
  to GtkListStore.
- Values are filled on demand using a function given when creating the
  model.
- The function can decide to let the model cache returned values or
  decide to be called again the next time the value is queried.
- implements GtkTreeSortable
- _gtk_file_system_model_get_value() was added to significantly speed
  up value access, which is necessary when sorting large models.

14 years agomove GtkFileSystemModel private stuff out of the private header
Benjamin Otte [Wed, 17 Jun 2009 08:39:26 +0000 (10:39 +0200)]
move GtkFileSystemModel private stuff out of the private header

14 years agoDo not assign the parent class twice
Xan Lopez [Thu, 15 Oct 2009 06:43:08 +0000 (09:43 +0300)]
Do not assign the parent class twice

G_DEFINE_TYPE already does this for us, no need to do it again in
class_init

https://bugzilla.gnome.org/show_bug.cgi?id=598515

14 years agoNotify the "active" property of the spinner only when needed
Paolo Borelli [Thu, 15 Oct 2009 11:59:01 +0000 (13:59 +0200)]
Notify the "active" property of the spinner only when needed

Notify spinner::active only if it really changed an other cosmetic fixes

14 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 15 Oct 2009 12:30:54 +0000 (14:30 +0200)]
Updated Slovenian translation

14 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 15 Oct 2009 12:27:30 +0000 (14:27 +0200)]
Updated Slovenian translation

14 years agogtk-demo: Remove C99-ism from list_store example
Emmanuele Bassi [Thu, 15 Oct 2009 11:25:21 +0000 (12:25 +0100)]
gtk-demo: Remove C99-ism from list_store example

14 years agoUpdated Swedish translation
Daniel Nylander [Thu, 15 Oct 2009 07:53:00 +0000 (09:53 +0200)]
Updated Swedish translation

14 years agoCompleting translation for Punjabi
A S Alam [Thu, 15 Oct 2009 07:26:27 +0000 (12:56 +0530)]
Completing translation for Punjabi

14 years agoMove documentation to inline comments: GtkToolShell
Javier Jardón [Thu, 15 Oct 2009 01:47:45 +0000 (03:47 +0200)]
Move documentation to inline comments: GtkToolShell

https://bugzilla.gnome.org/show_bug.cgi?id=597865

14 years agoMove documentation from templates to inline comments: GtkAccesible
Javier Jardón [Wed, 14 Oct 2009 22:25:40 +0000 (00:25 +0200)]
Move documentation from templates to inline comments: GtkAccesible

https://bugzilla.gnome.org/show_bug.cgi?id=597865

14 years agoMove documentation from templates to inline comments: GtkActivatable
Javier Jardón [Wed, 14 Oct 2009 21:47:33 +0000 (23:47 +0200)]
Move documentation from templates to inline comments: GtkActivatable

https://bugzilla.gnome.org/show_bug.cgi?id=597865

14 years agoMove documentation from templates to inline comments: GtkAccelGroup
Javier Jardón [Wed, 14 Oct 2009 02:09:48 +0000 (04:09 +0200)]
Move documentation from templates to inline comments: GtkAccelGroup

https://bugzilla.gnome.org/show_bug.cgi?id=597865

14 years agoFix GtkSpinner using style before it's set
Bastien Nocera [Wed, 14 Oct 2009 22:11:43 +0000 (23:11 +0100)]
Fix GtkSpinner using style before it's set

Fix a possible division by zero when the spinner
is started before it's realized (eg. before it has a style
set).

https://bugzilla.gnome.org/show_bug.cgi?id=598496