Commit graph

212 commits

Author SHA1 Message Date
Christian Dywan
b80b97b787 Require that the URI passed to katze_load_cached_icon be NULL 2010-09-15 04:10:54 +02: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
7ac801799f Remove katze_net_new and katze_net_get_session 2010-09-07 22:39:51 +02:00
Christian Dywan
0cc46d6285 Don't leak the filename in katze_load_cached_icon 2010-09-06 03:03:07 +02:00
Alexander Butenko
672b7ab70a Protect proxy combo box notifications against recursion
This can happen when switching between custom and other elements.
2010-08-24 23:50:47 +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
a49f1f7814 Introduce katze_bookmark_populate_tree_view() and rename ITEM_IS* macros 2010-07-01 23:37:13 +02:00
Christian Dywan
6822969aac Introduce katze_item_get_meta_boolean convenience 2010-07-01 20:42:42 +02:00
Christian Dywan
c571a6394f Don't pass around KatzeNet instances anymore
The KatzeNet is always a singleton, no need to pass it around.
2010-05-25 19:03:01 +02:00
Christian Dywan
af29dcf304 Always save KatzeItem::icon as meta data
This gives us saving of the icon in XML for free.
2010-05-09 00:56:03 +02:00
Christian Dywan
4b94b63f70 Base KatzeThrobber on GtkSpinner if available 2010-05-02 16:11:18 +02:00
Christian Dywan
a25e4c5f0a Add gtk_widget_get_window and fix gtk_dialog_get_content_area 2010-04-28 23:57:22 +02:00
Christian Dywan
c213824d5f Expose items in a KatzeArray as GList 2010-04-25 23:38:59 +02:00
Christian Dywan
7e5dd2db32 Minimal support for tests and extensions in Vala 2010-04-25 00:11:57 +02:00
Samuel Creshal
6ccfb136cd Load cached icons from http and https 2010-03-13 20:08:40 +01:00
Christian Dywan
b5f8334360 Merge KatzeNet icon loading into MidoriView
MidoriView is the only place where icons are and should be
loaded, elsewhere we just use cached icons.

midori_view_get_icon_uri allows distinguishing whether a view
has an icon or a default icon, and using the filename.
2010-03-11 23:30:54 +01:00
Christian Dywan
8c1e5e4305 Free text after proxy combo text change 2010-03-11 23:30:53 +01:00
Enrico Tröger
3583a07056 Declare widget allocation macros for GTK+ < 2.18 properly 2010-03-02 23:58:17 +01:00
Christian Dywan
515795a317 Add fallback definition of gtk_widget_get_visible in KatzeScrolled 2010-02-21 18:01:20 +01:00
Christian Dywan
1f9dbe9f25 Fix fallback gtk_widget_get_allocation definitions 2010-02-21 12:51:31 +01:00
Christian Dywan
daa04eaeb1 Avoid GtkScrolledWindow members in KatzeScrolled 2010-02-19 19:02:57 +01:00
Christian Dywan
20602673fe Use allocation accessor in katze utils 2010-02-19 17:22:34 +01:00
Christian Dywan
fa66334289 Accessors instead of widget flag macros in Katze 2010-02-19 17:10:54 +01:00
Christian Dywan
cd855b7cde Use allocation accessor in KatzeScrolled 2010-02-19 16:48:02 +01:00
Christian Dywan
ff97ec6232 Allocation/ requisition accessors in KatzeThrobber 2010-02-19 16:46:23 +01:00
Christian Dywan
42cf028781 Use accessors for widget window in KatzeScrolled 2010-02-19 16:37:43 +01:00
Christian Dywan
2e6b4debe1 Remove unused KatzeNet instance from KatzeArrayAction 2010-02-10 19:52:11 +01:00
Christian Dywan
41d41e69ad Use the colormap of the widget with KatzeScrolled 2010-01-31 20:41:30 +01:00
Christian Dywan
01daddf34c Add missing assignments to fix drag scrolling with KatzeScrolled 2010-01-31 20:41:30 +01:00
Christian Dywan
a1c598851b Use adjustment accessor functions in KatzeScrolled 2010-01-30 16:59:37 +01:00
Christian Dywan
753af1c32e Use gtk_dialog_get_content_area if available instead of dialog->vbox 2010-01-29 22:58:36 +01:00
Christian Dywan
cc6bb8fddb Lookup icon size in relation to the according screen or widget 2010-01-29 22:43:39 +01:00
Christian Dywan
9785317a88 Move throbber class declarations to the beginning of the function 2010-01-29 21:10:05 +01:00
Enrico Tröger
af7d9428e7 Adjust permissions of saved logins to 0600 when saving logins 2010-01-24 23:40:51 +01:00
Enrico Tröger
3ed2046d50 Check 'Remember password' depending on whether it was checked before 2010-01-24 23:37:59 +01:00
Christian Dywan
a7b982eff0 Let preference notebook fill and expand, for proper resizing 2010-01-24 11:06:10 +01:00
Can Erkin Acar
b7fd68c173 Don't leak temporary icon filename and don't free icon URI too early 2010-01-19 06:09:05 +01:00
Christian Dywan
07d4964e90 Add G_GNUC_CONST to all Katze type functions 2010-01-17 18:14:48 +01:00
Christian Dywan
15658145b2 Build katze, core and panels as one, and allow non-progressive build
This simplifies the build and possibly helps with linking problems
on some platforms. The 'progressive' option allows building
without an intermediate static library except for unit tests.
2010-01-01 18:20:08 +01:00
Christian Dywan
b1ee80d55e Implement katze_utf8_stristr, katze_collfold and use in completion
Evidently normalizing any whole string is too slow for completion,
so we need to even out case and composition while iterating through
the strings.

The decompositing version of katze_utf8_stristr is disabled, since
it is too slow, and an ascii only version is used, for now.

A unit test 'compare' is added that solely measures performance of
katze_collfold and katze_utf8_stristr.
2009-12-28 23:59:54 +01:00
Alexander Butenko
045cc81b45 Use g_access instead of g_file_test consistently 2009-12-19 11:28:46 +01:00
Alexander Butenko
670ee72e3f Use g_access instead of g_file_test in katze_mkdir_with_parents 2009-12-18 21:21:56 +01:00
Christian Dywan
2733ae4f2e Connect to button press on folder menu items 2009-12-13 15:41:47 +01:00
Christian Dywan
185ff3e338 Only directly open bookmark proxy if has a URI 2009-12-12 00:04:55 +01:00
Christian Dywan
ee4776244e Support meta-data-changed::key in KatzeItem 2009-12-11 23:45:11 +01:00
Christian Dywan
9c40d3b5ba Handle Empty menu item in bookmarks and not in KatzeArrayAction 2009-12-05 23:58:40 +01:00
Christian Dywan
1fa2c95bf4 Implement reverse ordering for use in Trash and RecentlyVisited actions 2009-12-05 21:33:19 +01:00
Christian Dywan
88778948ea Double check meta values before trying to convert to a long 2009-11-30 19:52:42 +01:00
Christian Dywan
2f18605656 Be sure to disconnect item notification when the proxy is destroyed 2009-11-30 19:47:41 +01:00
Christian Dywan
dd196dc942 Emit the bookmark proxy signal instead of connecting a new handler 2009-11-30 19:36:16 +01:00