Slider to change the size of url bar/search bar

Bug #738422 reported by ikem
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Midori Web Browser
Fix Released
Wishlist
Peter Hatina

Bug Description

Sometimes I need a wider search bar. It would be neat to have a slider to widen them when needed.

Cris Dywan (kalikiana)
Changed in midori:
importance: Undecided → Wishlist
Michael Moroni (airon90)
tags: added: searchbar width
Revision history for this message
Peter Hatina (phatina) wrote :

When, there is location and search entry close to each other, they are placed into resizable container with handle in between them. When closing the application, there is also search entry width stored for next startup. In other case (not being together), there is no resizable container used for both widgets.

Revision history for this message
Cris Dywan (kalikiana) wrote :

"typedef enum {T_LOCATION, T_SEARCH, T_OTHER, T_DONTCARE} token_t;" looks very alien to me. I'd suggest something more like MidoriStartup/ MIDORI_STARTUP_BLANK_PAGE style-wise.

I notice random indentation. 4 spaces relative to the previous line OR aligned to brackets if they're not too far to the end of the line, that's the basic rule of thumb.

Mapping between T_LOCATION/ T_SEARCH and action names seems more complicated that it could be. How about defining the values as g_static_string ("Location") etc so they can be used interchangeably without switches?

Revision history for this message
Peter Hatina (phatina) wrote :

Kalikiana: I changed the enum to static strings, now it should look okay.

Revision history for this message
Cris Dywan (kalikiana) wrote :

Very nice, works very well here even when editing in the toolbar editor repeatedly. I fixed the inline declarations and added a doc comment. Thanks!

Changed in midori:
status: New → Fix Committed
Revision history for this message
gue5t gue5t (gue5t) wrote :

After this commit, with a new config, midori crashes when enabling the menubar. When reopened, the menubar is present but the Location and Search entries are missing, and are concatenated without a comma in the "toolbar-items" setting in the config file.

Cris Dywan (kalikiana)
Changed in midori:
status: Fix Committed → In Progress
assignee: nobody → Peter Hatina (phatina-redhat)
Revision history for this message
Cris Dywan (kalikiana) wrote :

LocationSearch is the name of the combined action, not a typo. As you are pointing it out, maybe choosing a more distinct name is a good idea.
I confirm the crash:

(midori:17313): Gtk-CRITICAL **: IA__gtk_paned_pack1: assertion `GTK_IS_WIDGET (child)' failed

(midori:17313): Gtk-WARNING **: Can't set a parent on widget which has a parent

Then it continues to startup with:

Gtk-CRITICAL **: IA__gtk_paned_pack1: assertion `GTK_IS_WIDGET (child)' failed

Revision history for this message
Peter Hatina (phatina) wrote :

Forgot to add some code to save_toolbar_items callback.

Revision history for this message
Peter Hatina (phatina) wrote :
Cris Dywan (kalikiana)
Changed in midori:
status: In Progress → Fix Committed
Cris Dywan (kalikiana)
Changed in midori:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.