! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Migrate tab 'Set Title' dialog to a gtk popover
Status:
RESOLVED: FIXED
Product:
Xfce4-terminal
Component:
General

Comments

Description Alexander Butenko 2017-04-23 17:46:43 CEST
Created attachment 7091 
patch

Subj. Looks like nicer and implementation is smaller :) Check it out.

 terminal/terminal-window.c | 49 +++++++++----------------------------------------
 1 file changed, 9 insertions(+), 40 deletions(-)
Comment 1 Igor editbugs 2017-04-27 22:28:47 CEST
Hi Alexander,
Thanks for the patch!
However, I don't really like how it looks without tab bar... Could you please try to move the popover "anchor point" to make it look nicer?
Comment 2 Alexander Butenko 2017-05-04 04:08:53 CEST
hey Igor,

how can I run terminal without tabs to test that?

thanks
Comment 3 Igor editbugs 2017-05-04 13:03:14 CEST
Alexander, you have to set MiscAlwaysShowTabs option to false in your config, and start terminal window with a single tab.
Comment 4 Igor editbugs 2017-05-30 23:25:05 CEST
In fact, I'm not sure about the whole thing...
For example, gnome-terminal seems to have implemented search dialog as a popover but then reverted it back (and I agree with their reasons):

commit 9b18c48ccb591d157cf38511219bbf27fde0bad2 (tag: 3.19.90)
Author: Christian Persch <chpe@gnome.org>
Date:   Tue Feb 16 18:59:09 2016 +0100

    search: Revert to using a window instead of a popover
    
    The popover isn't movable and might cover the match, so until that
    can be fixed, revert to using a window for the search dialogue.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755653
Comment 5 Igor editbugs 2017-05-30 23:27:55 CEST
Oh wait, we're talking about set title dialog here. Then I guess it won't hurt much if it covers some terminal contents.
Anyway, were you able to work on patch improvement, Alexander?
Comment 6 Alexander Butenko 2017-06-04 21:42:01 CEST
correct, it's a set title small window replacement.  But seems there is no api to relocate popover to the center of the widget. right now you can put popover on top,bottom,left or right of some gtkwidget. So for now I have no idea how to put gtkpopover in the middle of the screen as its been before.
Comment 7 Alexander Butenko 2017-06-04 21:49:33 CEST
Created attachment 7158 
new versio

thats my best shot. In no menubar case Im attaching a popover to the menubar.
Looks pretty good, check it out.
Comment 8 Igor editbugs 2017-06-06 02:03:05 CEST
Hi Alexander,

The latest version looks really good, indeed! I've merged your patch and improved the popover a bit. Thank you!

Bug #13522

Reported by:
Alexander Butenko
Reported on: 2017-04-23
Last modified on: 2017-06-06

People

CC List:
1 user

Version

Attachments

patch (4.32 KB, patch)
2017-04-23 17:46 CEST , Alexander Butenko
no flags
new versio (4.67 KB, patch)
2017-06-04 21:49 CEST , Alexander Butenko
no flags

Additional information