Commit graph

68 commits

Author SHA1 Message Date
Christian Dywan
fb3fb594a9 Eliminate 'send' flag from midori_app_send_notification
The declaration is misplaced and the logic actually makes
no sense.
2010-10-14 21:14:28 +02:00
Christian Dywan
ca2582c5e3 Don't declare command in callback as UniqueCommand
Since we're using a custom command it is in fact not part of
the enumeration and thus some compilers complain.
2010-10-14 21:11:01 +02:00
Christian Dywan
d34da1c500 Remove pointless FIXME and TODO comments from Midori classes 2010-09-12 20:23:39 +02:00
Christian Dywan
1b80f16bf4 Remove browser-count, midori_panel_set_compact, console toolbar 2010-09-07 22:24:11 +02:00
Christian Dywan
64b6f6ce6d Implement midori_app_get_browser in MidoriApp 2010-04-27 22:34:26 +02:00
Christian Dywan
102810842f Expose browsers in MidoriApp as GList 2010-04-25 23:39:00 +02:00
Christian Dywan
3682b7755e Clarify MidoriApp signal documentation 2010-03-19 20:16:48 +01:00
André Stösel
283005e217 Implement and use sokoke_recursive_fork_protection
As Midori may call external tools to open URIs it cannot handle,
and at the same time Midori is commonly the default browser,
this can end in recursion when the external tool also calls Midori.

See the description of sokoke_recursive_fork_protection().
2010-03-12 23:31:14 +01:00
Alexander Butenko
f3f53db4d7 Fallback to the first browser if one is closed
We need to keep one browser as the default for commands
and opening files externally.
2010-02-22 19:03:45 +01:00
Christian Dywan
713091134f Handle search engines in MidoriBrowser and simplify sokoke_magic_uri 2010-02-10 19:52:12 +01:00
Alexander Butenko
4854cfab5d Use notify-send only as a fallback if libnotify is not available 2010-01-25 21:44:26 +01:00
Christian Dywan
b7d09f38bb Handle window raising without the help of unique 2010-01-06 23:40:46 +01:00
Christian Dywan
311a5a8a1b Store searches with tokens in the completion as a distinct item
Currently searches won't be stored persistently in the database.
2010-01-01 22:47:24 +01:00
Christian Dywan
a94cf71700 Turn libnotify into a build-time dependency, mind notify-send
libnotify support is decided at build-time now, to avoid so name
issues. notify-send is still optional at runtime as a fallback.
2009-12-15 00:03:28 +01:00
Christian Dywan
e04a078de4 Check for libnotify.so.1 and libenchant.so.1 explicitly
Some distributions only install versioned libraries by default
while the generic files reside in development packages. This is
because later versions may break ABI, so we explicitly use
the supported version.
2009-12-14 18:54:32 +01:00
Christian Dywan
9adf9458b0 Support executing multiple passed commands one after another 2009-12-07 20:52:32 +01:00
Christian Dywan
1d68dc9fb7 Implement and optimize for portrait mode support for Fremantle
Listen to accelerometer movement.
Hide tool items in portrait mode.
Omit Homepage and View Source from app menu.
Include Compact Add, View Source and Fullscreen in context menu.
Hide buttons in portrait mode in preferences.
2009-11-29 14:09:28 +01:00
Christian Dywan
974ba431d8 Only connect input output channel if socket was successfully created 2009-11-19 23:34:13 +01:00
Peter de Ridder
6658afb885 Replace a '\' in the display name with a '_'
On Windows, display names can contain backslashes which results
in an error in the socket implementation.
2009-11-19 22:56:46 +01:00
Christian Dywan
0f156fa932 Implement MidoriApp based on libOsso application interface 2009-11-10 22:01:54 +01:00
Christian Dywan
3efbc1b462 Leave setting up windows to the app, which is a lot faster
With a mature history setting up a browser window can be slow, but
if it's setup at creation time it is extremely fast.

The signal prototype of MidoriBrowser::new-window had to change,
all call sites were adjusted.
2009-10-31 04:29:15 +01:00
Christian Dywan
91113a189c Use Hildon banners for notifications on Maemo 2009-10-26 18:05:16 +01:00
Enrico Tröger
8baee5780d Allocate uris correctly as gchar*, not gchar 2009-07-10 16:20:56 +01:00
Christian Dywan
abccaf02da Implement -e or --execute to perform various commands
Currently any GtkAction in MidoriBrowser is recognized as a command,
no arguments are supported. Commands affect either a newly run
instance or a currently running one.
2009-06-17 00:46:53 +02:00
Christian Dywan
3bcd8b6615 Copy libsylph socket.c as fallback for single instance libunique
This socket code makes single instance a mandatory feature assuming
if libunique is not available we can use sockets.
A bit of refactoring of MidoriApp is involved to make the command
logic independant of the nature of the instance handling.
2009-06-16 01:46:22 +02:00
Christian Dywan
35cdff552d Adjust HAVE_UNIQUE define to resolve a compiler warning 2009-06-06 18:52:29 +02:00
Christian Dywan
907f7a72ce Implement Open new pages in: New window preference 2009-05-17 20:29:31 +02:00
Christian Dywan
ff2abf1fd4 Use katze_assign, not katze_object_assign for program_notify_send 2009-05-12 01:50:07 +02:00
Enrico Tröger
70a9d29ea6 Add midori_app_send_notification() to easily send notifications
Sending such messages is either done by using libnotify if
available. Otherwise the program "notify-send" is used.
2009-05-09 15:55:10 +02:00
Christian Dywan
b058e8ec5d Add a remove-browser signal to MidoriApp 2009-04-22 21:58:00 +02:00
Ernst Persson
22ded9a981 Apply URI magic to externally opened addresses 2009-04-12 23:37:15 +02:00
Christian Dywan
85f2386279 Revert "Apply URI magic to externally opened addresses"
The commit had the wrong author name.
2009-04-12 23:31:42 +02:00
Thorsten Mühlfelder
1b8de1588f Apply URI magic to externally opened addresses 2009-04-12 22:44:11 +02:00
Christian Dywan
07aed45bd9 Recognize different instances for different config dirs
If Midori is built with support for multiple instances and a
config folder is specified a new instance bound to that
folder is created.

The new "name" property in MidoriApp implements this.
2009-04-09 20:34:27 +02:00
Christian Dywan
19ee2c16bf Handle running MidoriApp with no display 2009-02-19 02:34:05 +01:00
Christian Dywan
b89fbb98f2 Implement MidoriApp::browsers and deprecate MidoriApp::browser-count 2009-01-20 22:40:25 +01:00
Nick Schermer
f02f9fd118 Make property strings static to save some memory 2009-01-16 05:19:43 +01:00
Nick Schermer
b6e33e5399 Implement 'full' debug-level and fix according warnings 2009-01-09 23:56:00 +01:00
Christian Dywan
4e1deaee05 Optimizations in main and MidoriApp 2008-12-30 03:00:08 +01:00
Christian Dywan
be9c907c7e Implement and make use of midori_app_create_browser 2008-12-25 00:39:35 +01:00
Christian Dywan
6b40913361 Actually emit "quit" even if a function quit the app 2008-12-12 10:12:33 +01:00
Christian Dywan
d00ff95058 Provide MidoriPane interface for use with MidoriPanel 2008-11-24 01:41:45 +01:00
Christian Dywan
ab747a427f Let MidoriApp be a normal instance
There is hardly a practical need for the application
to be a singleton, it's cleaner and it prevents
extensions from reaching out for it before activation.
2008-11-20 01:49:04 +01:00
Christian Dywan
72f39b0f82 Change extension API to split initialization and activation
We want to be able to keep extensions in a state where
they don't actually do anything but merely provide
context information. Therefore don't pass the MidoriApp.

As soon as we want to use extensions, we activate them.

Extensions are now saved in an array in MidoriApp.
2008-11-20 01:22:25 +01:00
Christian Dywan
5a1b766a43 Fix MidoriApp so that add-browser is actually usable 2008-11-18 02:01:30 +01:00
Christian Dywan
80128d9315 Apply some cleanup with regard to referencing and more 2008-10-30 02:21:19 +01:00
Enrico Tröger
839d692ec4 Focus the location when remotely opening a new window 2008-10-21 22:59:57 +02:00
Christian Dywan
2fccaa1bea Add an Open external pages in Preference 2008-10-20 08:50:16 +02:00
Christian Dywan
58255d19aa Do not localize object properties, except WebSettings
Property name localization is only useful if the
strings are meant to be used in a user interface,
such as is the case with WebSettings, or for
graphical interface builders, which are not of
our concern, since we don't use Glade and friends
and nobody else is going to use our widgets.

In short, make translation work much easier.
2008-10-15 03:32:11 +02:00
Christian Dywan
9f2418d455 Focus tabs remotely opend in the running instance 2008-10-11 04:02:34 +02:00