Commit graph

55 commits

Author SHA1 Message Date
Christian Dywan
fb2e4eea77 Use same clear icon handling in findbar and panels 2012-01-14 00:45:01 +01:00
Christian Dywan
d9c4bb15c0 Remove obsolete MidoriLocationAction and panel boilerplate 2011-11-09 22:06:11 +01:00
Christian Dywan
8fff7d8fd3 sokoke, gtk3-compat, gtkiconentry, stock join midori-platform.h
Also introduce #define MIDORI_MODULE_PREFIX.

Fixes: https://bugs.launchpad.net/midori/+bug/884395
2011-10-31 22:18:06 +01:00
Lucas Baudin
b5aad2d176 Allow building with GTK+3
Fixes: https://bugs.launchpad.net/midori/+bug/861351
2011-10-07 20:24:02 +02:00
Paweł Forysiuk
e4d4ec26fb Always NULL-check database before using it
If the database is broken in whatever way the pointer is
unset. A good next step would be to give more user-friendly
feedback than the current rough dialog.
2011-07-30 20:11:45 +02:00
Tomasz Szatkowski
5d372c116d History panel buttons sensitive with selection
Fixes: https://bugs.launchpad.net/midori/+bug/711482
2011-04-17 22:56:30 +02:00
Christian Dywan
03b146386e Don't test PrivateBrowsing and AddDesktopShortcut 2011-01-16 14:05:23 +01:00
Christian Dywan
d69e92b76a Automatically resize panel columns after changes 2010-11-24 19:10:53 +01:00
Christian Dywan
765cdfeb27 Select date for all history queries, even filtered
Deleting requires a date to work.
2010-11-24 00:37:01 +01:00
Christian Dywan
6246987ba8 Clear history through array and update the panel 2010-11-22 03:49:51 +01:00
Christian Dywan
40dc38fd21 Implement and use KATZE_ARRAY_FOREACH_ITEM
Iterating an array by a GList is considerably faster than
continuously retrieving items, however it is also a lot
more complicated. So the new macro takes care of that and
uses a new semi-private function to avoid copying the list.

Note that the macro can't be nested, which basically isn't
useful in practise anyway.
2010-09-12 00:59:24 +02:00
Christian Dywan
802c1eb462 Always allocate and free formatted dates in history panel 2010-09-06 03:03:07 +02:00
Christian Dywan
71549af089 Disconnect insertion when MidoriHistory finalizes 2010-08-10 22:58:11 +02:00
Christian Dywan
34d7a8033b Use KatzeArray* to signal new items to MidoriHistory 2010-07-31 01:42:14 +02:00
Christian Dywan
5b640c7f46 Store address of bookmarks for tooltip as a string in the model 2010-07-31 01:21:50 +02:00
Alexander Butenko
d78efc0863 Duplicate day name for history panel folder names 2010-07-23 21:49:16 +02:00
Alexander Butenko
46b63639f6 Refactor history panel to match bookmark code.
The toolbar buttons are also taken care of.

The broken clock time warning was removed since it would be
awkward to have with the date formatting where there is not
even a widget available. Should be re-considered.
2010-07-21 23:31:45 +02:00
Alexander Butenko
58f3444ba1 Rework history panel search query 2010-07-21 23:22:52 +02:00
Christian Dywan
94fbf158f6 Remove conditional guards for sqlite 2010-07-17 21:31:29 +02:00
Alexander Butenko
62930be082 Introduce midori_browser_set_current_page_smartly() as public API 2010-07-05 00:14:06 +02:00
Alexander Butenko
76ea968e20 Drop callbacks for cursor-changed and columns-changed
We don't have special separators any more, so there is no items
that can't be deleted.
2010-07-04 23:47:39 +02:00
Alexander Butenko
7f4c4ad287 Match appearence of history and bookmark search 2010-07-04 23:40:44 +02:00
Alexander Butenko
9230c299e9 Fix for Open all in tabs for directories in history bar 2010-07-03 22:33:45 +02:00
Alexander Butenko
4e0c1396a0 Allow to expand/ collapse folder by double click 2010-07-02 23:17:05 +02:00
Alexander Butenko
fb634e19b9 Fix popup menu on folders in history 2010-07-01 20:32:34 +02:00
Alexander Butenko
08dab16bc2 Refactoring of bookmarks add functions 2010-06-26 17:24:53 +02:00
Christian Dywan
dfddd7ce0a Leave panel icon styles to the system settings 2010-05-13 16:53:19 +02:00
Christian Dywan
3f886f7153 Include previous searches in History panel items 2010-03-01 00:24:46 +01:00
Christian Dywan
6d722f6294 Only read history into History panel if an array is given 2010-02-10 19:52:11 +01:00
Christian Dywan
ee51a8c87f Implement a filter entry in History panel, similar to Cookie Manager 2010-02-10 19:52:11 +01:00
Christian Dywan
eb5b244647 Remove unused KatzeNet instance from History panel 2010-02-10 19:52:11 +01:00
Christian Dywan
24b0916d62 Remove invisible dummy row when expanding, and add it when collapsing 2010-02-10 19:52:11 +01:00
Christian Dywan
94aebbf1fe Render dummy history items as separators
Until we find a better way this should reduce confusion about
'empty' folders appearing.
2010-02-04 00:17:51 +01:00
Alexander Butenko
a90dc507ff Make the Delete key delete history entries again 2010-02-03 22:15:49 +01:00
Alexander Butenko
1a236a3800 Clear the history folders on collapse, repopulate on expand 2010-02-03 22:13:00 +01:00
Christian Dywan
ae1ea1214b Only query the current time once when populating the history 2010-02-03 18:42:58 +01:00
Christian Dywan
bee4615d10 Render history dates directly without age column or render callback
Resurrect sokoke_days_between for calculating age in days.
2010-02-03 01:39:13 +01:00
Alexander Butenko
3848becaa6 Re-implement history panel based on sqlite queries 2010-02-02 21:10:03 +01:00
Christian Dywan
1c45254f23 Always prepend history items to the top of the history panel 2009-12-05 20:22:51 +01:00
Christian Dywan
9eefb25bb6 Refactor loading cached page icon into katze_load_cached_icon
The function is optimized for loading icons and independant from
a KatzeNet instance.
2009-11-17 23:22:08 +01:00
Christian Dywan
fd7d778e0c Remove sokoke_widget_popup and replace all call sites 2009-11-15 18:21:59 +01:00
Christian Dywan
461511c216 Don't assert on future dates, but accept it and show a warning.
On a mobile phone it's not that uncommon to accidentally reset the
system clock by removing the battery. So instead of crashing
a warning is displayed.
2009-10-30 21:10:20 +01:00
Enrico Tröger
dced22f179 Use midori_app_add_browser in panels to create new windows
This fixes a crash due to change of the signal signature.
2009-05-31 03:34:13 +02:00
Christian Dywan
f95254cd04 Improve reference counting in the history panel
This does not fully solve it but should avoid warnings caused
by invalid objects.
2009-05-26 08:20:52 +02:00
Christian Dywan
9e5d50a7a5 Don't use gettext inside of ngettext 2009-05-25 18:10:47 +02:00
Christian Dywan
396c477f2d Disconnect history panel when finalizing
There's a small hack now which prevents the disconnect function
from releasing the references. Our reference handling is flawed
and needs to be investigated before we can fix that for good.
2009-05-15 20:08:06 +02:00
Christian Dywan
2715ec2438 Use ngettext to render %d days ago 2009-05-10 15:42:12 +02:00
Christian Dywan
d45b72941e Make history panel properly detachable 2009-04-23 04:14:32 +02:00
Christian Dywan
0e0e362a8e Don't make sensitivity of Clear history depend on the selection 2009-04-10 22:29:10 +02:00
Christian Dywan
eed273b35e Fix memory leaks in a number of places 2009-04-05 23:46:15 +02:00