summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Simplify handling of c->titleGravatar Quentin Rameau 2015-11-221-17/+13
|
* Fix pasteuri()Gravatar Quentin Rameau 2015-11-221-1/+1
| | | | The uri check had been inverted.
* Style fix in sigchld()Gravatar Quentin Rameau 2015-11-221-1/+2
|
* Replace use of EXIT_* constants to 0 and 1Gravatar Quentin Rameau 2015-11-221-2/+2
|
* Fix WM_CLASS and WM_WINDOW_ROLE propertiesGravatar Quentin Rameau 2015-11-221-12/+8
| | | | | | | | | | | | | | Instead of forcing class and instance names, which is what GTK does by default anyway, allow the user to set the instance name, but keep the general class as “Surf”. Is we won't support a “-name” parameter and don't implement a parsing of RESOURCE_NAME env variable, let's fallback on the third behaviour, use the name of the calling executable. That would let the user do things like 'ln -s ./surf ./surf-other; ./surf-other' and set different parameters for the two instances (in dwm for example). Try to generate a unique WM_WINDOW_ROLE (within the surf process) composed of “Surf” and the view ID.
* Remove window hints settingsGravatar Quentin Rameau 2015-11-221-3/+0
| | | | Setting minimum size to 1x1 is not necessary as this is the default.
* Style indentation fixGravatar Quentin Rameau 2015-11-221-2/+2
|
* Continue making chars constGravatar Quentin Rameau 2015-11-221-2/+2
|
* Correct and simplify buttonreleased() gdk eventGravatar Quentin Rameau 2015-11-221-5/+4
| | | | | | The passed event is a GdkEvent (or GdkEventButton), but not a GdkEventKey. Access the struct directly.
* Un(g)boolify to separate GTK dependant code from the restGravatar Quentin Rameau 2015-11-222-29/+27
|
* Use char instead of gchar and make them const when possibleGravatar Quentin Rameau 2015-11-221-6/+6
|
* Style update for indentationGravatar Quentin Rameau 2015-11-222-181/+158
|
* Add mouse function to play medias in external playerGravatar Quentin Rameau 2015-11-212-0/+20
| | | | Control + left click launches mpv with the target media url.
* Update creditsGravatar Quentin Rameau 2015-11-211-0/+1
|
* Style change in includes orderGravatar Quentin Rameau 2015-11-211-18/+18
|
* Style change in functions orderingGravatar Quentin Rameau 2015-11-212-802/+802
| | | | | Try to group and order functions in a logical manner. Same thing for config keybindings.
* Cleanup remaining unused variables and copystr()Gravatar Quentin Rameau 2015-11-201-18/+0
|
* Adapt newwindow()Gravatar Quentin Rameau 2015-11-201-25/+36
| | | | | Reorder cmdline options alphabetically and try to keep settings as they have been toggled in this surf client.
* Adapt user agent handlingGravatar Quentin Rameau 2015-11-202-7/+11
| | | | | Now we can only append Surf version to the default WebKit user agent instead of setting the whole string (while this remains possible to do).
* Adapt updatetitle()Gravatar Quentin Rameau 2015-11-201-14/+12
| | | | | Now always show loading progress, still print mouse over link uri before page uri. Process simplyfied because we use const strings.
* Adapt toggle statisticsGravatar Quentin Rameau 2015-11-201-33/+17
| | | | | | | Rename *togglestat to plural *togglestats, add frame flatenning indicator, resize array in consequence. Use a static index instead of a dynamic one as we always use all values anyway.
* Adapt page statisticsGravatar Quentin Rameau 2015-11-201-10/+8
| | | | | Rename *pagestat to plural *pagestats, and resize array to reflect missing proxy parameter.
* Adapt loaduri()Gravatar Quentin Rameau 2015-11-201-21/+18
| | | | | | | Better handling of different URIs. Filter out “about:” scheme, dont touch URI if it contains a complete scheme (we assume "://", denotes one), else test if given path is an actual reachable file on the filesystem, else prepend arbitrary http:// scheme.
* Adapt config MACROs SETPROP, DOWNLOAD, PLUMBGravatar Quentin Rameau 2015-11-201-3/+3
| | | | | As we now use directly const strings from WebKitGTK, “constify” arg void pointer.
* Rename mouse functions to clickFUNCTION()Gravatar Quentin Rameau 2015-11-202-14/+17
|
* Adapt toggle(), clean some config parametersGravatar Quentin Rameau 2015-11-202-35/+71
| | | | | | Regroup all toggles in an enum and handle them with a unique function via a switch. That lets us take different actions for each toggle. Add a frame flatenning and a dns preteching options.
* Adapt find()Gravatar Quentin Rameau 2015-11-202-10/+29
| | | | | | | Slightly new behaviour: searching again for the same string (via MOD+/) resets the search (ie restarts search from document top). Searching for an empty string stops the search (ie all highlights are removed).
* Adapt zoom()Gravatar Quentin Rameau 2015-11-201-16/+11
|
* Adapt navigate()Gravatar Quentin Rameau 2015-11-201-4/+6
|
* Remove togglescrollbars()Gravatar Quentin Rameau 2015-11-202-45/+0
| | | | | We do not have access to scrollbars and will have to manipulate DOM to do that.
* Adapt scrollingGravatar Quentin Rameau 2015-11-202-38/+15
| | | | | | In fact, we have a scrolling handle ersatz for now using JavaScript calls as we don't have access anymore to scrollbars. We'll have to manipulate the DOM directly (later).
* Adapt inspector handlingGravatar Quentin Rameau 2015-11-202-54/+8
| | | | | The inspector is now easily manageable via API, there's no need for keeping its state in the Client.
* Adapt print()Gravatar Quentin Rameau 2015-11-201-3/+4
|
* Simplify building of stylefiles pathGravatar Quentin Rameau 2015-11-201-11/+4
| | | | | We can directly use style file pointers instead of using temporary string pointers.
* Adapt setstyle()Gravatar Quentin Rameau 2015-11-201-4/+16
| | | | | We can't anymore pass a simple path to a stylefile, we have to read the entire file to create a stylesheet and apply it to the view.
* Adapt clipboard()Gravatar Quentin Rameau 2015-11-201-8/+6
| | | | Replace linkhover with target uri and add some comments
* Rename fullscreen() to togglefullscreen()Gravatar Quentin Rameau 2015-11-202-5/+14
| | | | | And handle c->fullscreen value in winevent(). This way we keep track of fullscreen state even if we did not directly initiate the fullscreen.
* Replace titlechangeleave() with catch-all winevent()Gravatar Quentin Rameau 2015-11-201-7/+15
| | | | | All GtkWidget events have the same function prototype with the generic GdkEvent as parameter. This will let us handle everything in the switch.
* Adapt JavaScript functionsGravatar Quentin Rameau 2015-11-201-25/+17
| | | | | Removed eval(), evalscript() is now sufficient and can directly execute passed JavaScript string.
* Remove windowobjectcleared(), execute scripts on load finishedGravatar Quentin Rameau 2015-11-201-14/+0
| | | | | | The “window-object-cleared” signal is not directly accessible for specific WebViews now. We'll have to use an Extension or rewrite the JavaScript running functions.
* Add createwindow() for GtkWindow creationGravatar Quentin Rameau 2015-11-201-27/+37
| | | | Move there window creation from showview().
* Add closeview() for JavaScript window closingGravatar Quentin Rameau 2015-11-201-5/+13
| | | | | Simply call gtk_widget_destroy() on the window. Then GtkWindow closing process will take care of the rest.
* Remove (delete :>) deletion_interface()Gravatar Quentin Rameau 2015-11-201-11/+0
|
* Integrate beforerequest() into decidepolicy()Gravatar Quentin Rameau 2015-11-201-40/+32
|
* Remove contextmenu() and menuactivate() for "context-menu" signalGravatar Quentin Rameau 2015-11-201-54/+0
| | | | | | Those were added because “right click menu to copy the link URI will now work” (would not work) in 2013. It's been a while since that works without intervention.
* Adapted buttonrelease()Gravatar Quentin Rameau 2015-11-202-24/+23
| | | | | | | Use the current hit test (c->mousepos) to determine where the mouse pointer is. It is possible to link an action to a click and still propagate the event after that by setting the “stop event” parameter of a Button to 0.
* Replace initdownload() and intercept global download requests.Gravatar Quentin Rameau 2015-11-201-11/+26
| | | | | Attach to download requests on WebKitContext, this way we can easily manage all types of downloads (coming from views or not).
* Adapted progresschanged()Gravatar Quentin Rameau 2015-11-201-5/+6
|
* Manage ssl errors with GTlsCertificateFlagsGravatar Quentin Rameau 2015-11-201-6/+5
| | | | | | | Keep a GTlsCertificateFlags in Client for TLS errors. If we don't use a ssl connection, set it to a value greater than maximum error flag value (which is G_TLS_CERTIFICATE_VALIDATE_ALL for all possible errors).
* Replace loadstatuschanged() with loadchanged()Gravatar Quentin Rameau 2015-11-201-27/+23
|