Commit graph

179 commits

Author SHA1 Message Date
Christian Dywan
5a082100c8 Use sqlite3_mprintf to quote when inserting bookmark items 2010-07-11 23:49:13 +02:00
Christian Dywan
ec2d1e21c9 Fallback to the old parent when inserting bookmarks 2010-07-05 23:14:49 +02:00
Alexander Butenko
62930be082 Introduce midori_browser_set_current_page_smartly() as public API 2010-07-05 00:14:06 +02:00
Christian Dywan
e70bc2cb75 Don't try to release references to dummy separator rows 2010-07-05 00:00:26 +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
8c784e7486 Implement search in the bookmark panel 2010-07-04 23:33:20 +02:00
Christian Dywan
78cfcb64d9 Force items dragged onto non-folders to the toplevel 2010-07-03 23:05:09 +02:00
Alexander Butenko
2caaed659c Remove last bits of 'type' field usage 2010-07-03 22:33:45 +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
b170dd688a Delete bookmarks from the folder they reside in 2010-07-03 22:33:45 +02:00
Alexander Butenko
659b7c351e Add 'folder' property to bookmarks 2010-07-03 22:33:45 +02:00
Alexander Butenko
ad5066a43f Remove ghosts after bookmark edit. Merge edit/ delete callbacks 2010-07-02 23:32:06 +02:00
Alexander Butenko
4e0c1396a0 Allow to expand/ collapse folder by double click 2010-07-02 23:17:05 +02:00
Alexander Butenko
8306424277 Remove separator when expanding bookmark folders 2010-07-02 23:11:03 +02:00
Alexander Butenko
8c6a8abe5f Revamp bookmark import with sqlite 2010-07-02 23:05:27 +02:00
Alexander Butenko
f907128904 Drop bookmark type field and save meta boolean properly 2010-07-01 23:37:14 +02:00
Alexander Butenko
3c4896f94f Start using new sqlite helper functions 2010-07-01 23:37:14 +02:00
Alexander Butenko
a49f1f7814 Introduce katze_bookmark_populate_tree_view() and rename ITEM_IS* macros 2010-07-01 23:37:13 +02:00
Alexander Butenko
fb634e19b9 Fix popup menu on folders in history 2010-07-01 20:32:34 +02:00
Alexander Butenko
090a16f664 Fix bookmark folder properties dialog 2010-07-01 20:32:23 +02:00
Alexander Butenko
791c38ae3e Fix open directory in tabs in bookmarks sidebar 2010-07-01 20:21:33 +02:00
Christian Dywan
62f5a1c974 Introduce ITEM_IS_BOOKMARK|FOLDER|SEPARATOR in bookmark panel
The implicit logic for differentiating items is not easy to
read, so we introduce macros for that.
2010-07-01 00:13:18 +02:00
Alexander Butenko
08dab16bc2 Refactoring of bookmarks add functions 2010-06-26 17:24:53 +02:00
Alexander Butenko
7c4263ebca Work around sqlite3_mprintf for bookmark metadata 2010-06-26 16:40:15 +02:00
Alexander Butenko
053048d05e Fixed handling of bookmark meta data
sqlite doesn't store negative value but rather 0 and 1, so we
work with these values now. As a side effect it makes the code
easier to read.
2010-06-19 16:23:49 +02:00
Alexander Butenko
6d3672a433 Initial support of DND in bookmarks 2010-06-17 00:54:59 +02:00
Alexander Butenko
f55377e7f3 Fix selecting a directory while adding a new bookmark
Allow folders to be removed
2010-06-17 00:12:17 +02:00
Alexander Butenko
09d9615964 Refresh bookmark sidebar on new items 2010-06-17 00:02:10 +02:00
Alexander Butenko
954939fdd1 Use extra attributes of a bookmark 2010-06-16 23:30:56 +02:00
Alexander Butenko
5af37f6c92 Fix edit/ delete/ new operations on bookmarks 2010-06-16 23:27:59 +02:00
Alexander Butenko
6f415c4e6e Import bookmarks from bookmarks.xbel on the first start.
The bookmark handling in main is not needed any more.
2010-06-16 23:17:51 +02:00
Alexander Butenko
9bff58199a Order bookmarks descending. Folders should always be on top 2010-06-16 20:57:52 +02:00
Alexander Butenko
3b46d80161 Fixup the bookmark panel initialization 2010-06-16 20:57:08 +02:00
Alexander Butenko
87ac3ae563 Initial sqlite read support
We go back to GtkTreeStore rather than a custom class.
2010-06-16 20:55:37 +02:00
Christian Dywan
2f5a65947f Add 'Copy All' to console panel 2010-05-19 00:42:15 +02:00
Christian Dywan
dfddd7ce0a Leave panel icon styles to the system settings 2010-05-13 16:53:19 +02:00
Christian Dywan
2611a24803 Remove unused extension panel popup logic 2010-05-06 23:41:07 +02:00
Arno Renevier
7c0e58a835 Refactor userscripts and userstyles as an extension 2010-05-02 11:53:05 +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
cee10ca6d8 Remove unused KatzeNet instance from Bookmarks panel 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
Alexander Butenko
11ff993ecd Strip trailing whitespace from console messages 2010-01-13 06:56:12 +01:00
Christian Dywan
a8d3d0955f Remove empty button from the Extensions panel 2010-01-08 01:44:48 +01:00
Christian Dywan
cbebda0db4 Remove Plugins panel, instead add Netscape plugins to Extensions
Netscape Plugins cannot actually be activated or deactivated
at the moment.
2010-01-08 00:16:56 +01:00
Christian Dywan
7f0141d657 Do not run scripts or styles on blank or special pages 2010-01-08 00:16:55 +01:00
Christian Dywan
578f74a308 Merge compat.h into sokoke and remove gtk_show_uri implementation 2010-01-01 23:24:03 +01:00
Alexander Butenko
eddb3ef557 Only monitor actually existing user script/ style folders 2009-12-21 23:40:29 +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
718d832537 Add 'Import bookmarks' button into the bookmark panel 2009-12-02 23:11:59 +01:00
Christian Dywan
ffee6e3850 Open bookmarks from the panel as apps or internal consistently 2009-11-26 23:16:07 +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
247848c6a9 Simplify javascript used in the Netscape plugins panel a little 2009-11-13 18:40:17 +01:00
Christian Dywan
ca2e2be632 Show the actual paths when clicking the "Add" button in the userscript panel 2009-11-04 19:29:29 +01:00
Christian Dywan
ec9ea0233e Hide Extensions panel if no extensions are available at all. 2009-10-30 21:43:42 +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
Christian Dywan
2ff14cf64d Fix a leaked URI string when injecting user scripts 2009-10-04 00:02:23 +02:00
Christian Dywan
ba1084d236 Merge userstyles into the userscript panel 2009-09-22 23:50:31 +02:00
Adrian Bunk
e5812d0478 Don't connect to a monitor that wasn't created in the first place 2009-09-15 21:04:29 +02:00
Christian Dywan
39e47ac3b7 Disable extensions that are unavailable on the system
Extensions can be unavailable on a particular platform or a system
lacking a build-time requirement. Let's handle this more cleanly
and reflect it in the Extensions panel.
2009-09-10 02:07:27 +02:00
Christian Dywan
0da785e94c Disconnect bookmark folder signals, for bookmarkbar and panel
This would lead to crashes when opening and closing windows and
attempting to add bookmarks afterwards.
2009-08-19 23:51:59 +02:00
Christian Dywan
a5a473eaad Label the buttons to clear transfers correctly "Clear All" 2009-08-11 17:23:30 +02:00
Enrico Tröger
e6ecea4194 Sort the list of extensions in the side panel 2009-07-18 15:25:15 +02:00
Christian Dywan
3f88bdb528 Compute the available Netscape plugins via JavaScript
Using JavaScript avoids dealing with formatting issues and is
better if plugins are not installed in the default folder.
2009-07-10 17:58:49 +01:00
Christian Dywan
7ca6944fc3 Resolve MidoriBookmarkStore warnings 2009-06-18 23:54:30 +02:00
Christian Dywan
881140c9c9 Include midori-bookmark-store.h in MidoriBookmarks 2009-06-10 22:04:22 +02:00
Christian Dywan
3179a538a9 Add the boilerplate for MidoriBookmarkStore 2009-06-09 02:59:29 +02:00
Christian Dywan
1873dfe631 Popup Extensions menu on button release, not press
Although menus should open on button press, we have to use
release if we want the treeview selection to be correct.
2009-06-09 01:11:42 +02:00
Christian Dywan
9f89df5358 Implement Open, Open folder and Copy destination in transfer panel 2009-06-09 01:10:08 +02:00
Christian Dywan
dfee0e5d14 Implement tick marks in Addons (User styles and -scripts) as well 2009-06-07 17:31:24 +02:00
Christian Dywan
e2795eff54 Implement togglable ticks in the extensions panel
Whether an extension is active or not is now reflected by a tick
mark that can be toggled with a mouse. Double clicking and
pressing space do the same. The buttons are thusly removed.
While we are at it, we also listen for status changes that might be
coming from a different window.
Sensitivity does no longer relate to activation status.
2009-06-07 16:59:51 +02:00
Przemek Sitek
ee6d2a1f6d Emphasize extension names by rendering them bold 2009-06-05 23:58:26 +02:00
Przemek Sitek
5a748a36ad Implement a context menu for extensions in the extension panel 2009-06-05 23:55:00 +02: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
38a7e023f9 Transfer panel Clear should only remove cancelled and finished items 2009-05-24 01:01:38 +02:00
Christian Dywan
63bce11e1a Redraw extensions treeview when activating/ deactivating 2009-05-24 00:07:17 +02:00
Christian Dywan
8deacc7a9d Basic support for @-moz-document in user styles
This is not completely correct but a good start. Basically
@-moz-document is recognized, "url-prefix" is respected, not
"domain" however. Namespaces are ignored. Document blocks
are not fully honored, instead all style rules apply to all
prefixes specified in any block in the file.
2009-05-20 01:20:34 +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
Enrico Tröger
606c629fa5 Use midori_browser_get_for_widget in the bookmark panel
This fixes opening bookmarks in the current tab.
2009-05-03 21:11:20 +02:00
Christian Dywan
b81e815427 Skip files that are not shared libraries in the Plugins panel 2009-04-25 23:10:43 +02:00
Christian Dywan
080bbd7eb5 Make transfer panel properly detachable 2009-04-25 16:19:11 +02:00
Christian Dywan
90d9e85167 Refer to 'Netscape plugins' instead of 'plugins'
A remarkable amount of people have problems telling 'plugins'
and 'extensions' apart, due to their different meaning in
different applications. So make it clearer.
2009-04-25 16:13:23 +02:00
Christian Dywan
d45b72941e Make history panel properly detachable 2009-04-23 04:14:32 +02:00
Christian Dywan
04dfda755d Make console panel properly detachable 2009-04-23 04:14:08 +02:00
Christian Dywan
9e97fabd30 Make bookmark panel properly detachable 2009-04-23 04:13:19 +02:00
Christian Dywan
daf6ca74e7 Remove leftover code from MidoriWebSettings 2009-04-22 23:57:10 +02:00
Christian Dywan
e3ce454b78 Render disabled extensions as insensitive in the panel 2009-04-22 20:00:04 +02:00