Use Headerbar with GTK+ 3.10 [$40]

Bug #1232558 reported by 982c80311320c1b
78
This bug affects 18 people
Affects Status Importance Assigned to Milestone
Midori Web Browser
Fix Released
High
Cris Dywan

Bug Description

Since GNOME and elementary apps move to HeaderBars it would be consistent if Midori would use one, too
See also bug 1254847.

Tags: gtk3.10

Related branches

Donte Greene (flykidd)
Changed in midori:
importance: Undecided → Low
Revision history for this message
Cris Dywan (kalikiana) wrote :

How would it be used? We need at least a mockup, the header bars are enirely free-form depending on the app from what I've seen.

Changed in midori:
status: New → Incomplete
milestone: none → 0.5.7
Revision history for this message
982c80311320c1b (alexander-wilms) wrote :

Basically, it would just be the current toolbar + the close button, roughly like how it's done in Epiphany: https://projects.gnome.org/epiphany/

Revision history for this message
Cris Dywan (kalikiana) wrote : Re: Use set_titlebar or Headerbar with GTK+ 3.10

Epiphany apparently embeds a toolbar wrapped in a frame without using HeaderBar, instead manually setting margins, a custom close button with "window-close-symbolic" and a SizeGroup for keeping buttons and the entry aligned.

summary: - Move to Gtk.Headerbar
+ Use set_titlebar or Headerbar with GTK+ 3.10
Changed in midori:
status: Incomplete → Confirmed
Revision history for this message
Donte Greene (flykidd) wrote :
Revision history for this message
Donte Greene (flykidd) wrote :

If Headerbar can change the color of the window, could the Colorful tabs extension possibly change the whole window color with this alongside the tabs?

I assume http://elementaryos.org/uploads/content/journal/109--528e96295a974.png is Birdie doing this.

Revision history for this message
982c80311320c1b (alexander-wilms) wrote :

Gnome Contacts changes the Headerbar color when you enable the edit mode: https://wiki.gnome.org/Design/Apps/Contacts

Cris Dywan (kalikiana)
description: updated
Revision history for this message
Cris Dywan (kalikiana) wrote :
Cris Dywan (kalikiana)
Changed in midori:
milestone: 0.5.7 → 0.5.8
Cris Dywan (kalikiana)
tags: added: gtk3.10
Cris Dywan (kalikiana)
Changed in midori:
milestone: 0.5.8 → garage
Cris Dywan (kalikiana)
Changed in midori:
importance: Low → High
Cris Dywan (kalikiana)
Changed in midori:
assignee: nobody → Christian Dywan (kalikiana)
milestone: garage → 0.6.0
status: Confirmed → In Progress
Revision history for this message
Yosef Or Boczko (yoseforb) wrote :

I just created a patch with kinds of fix.
It not really fix, we needs to do what I did for epiphany and geary (and other
apps) - to port the whole toolbar with all the buttons from ToolItem to real
button.

Just before I work on this (it take more time than changes two lines), I wants
to know if it already done in the gtk3webkit2 branch.

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

Yosef, yes, there's already support for that, including some changes to extensions adding custom buttons - it still needs some bug fixes I didn't get to yet, mainly to make sure we can still support a classic toolbar seemlessly for environments that haven't switched to headerbars and where it would look out of place. If you want to help how, I suggest you try the gtk2webkit2 branch and have a look at midori/midori-window.vala which handles this.

summary: - Use set_titlebar or Headerbar with GTK+ 3.10
+ Use Headerbar with GTK+ 3.10
summary: - Use Headerbar with GTK+ 3.10
+ Use Headerbar with GTK+ 3.10 [$40]
Changed in midori:
status: In Progress → Fix Committed
Cris Dywan (kalikiana)
Changed in midori:
milestone: 0.6.0 → 0.5.11
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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