After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 604978 - Improve run dialog
Improve run dialog
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 604958 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-12-19 06:33 UTC by Maxim Ermilov
Modified: 2010-03-31 15:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for this bug (10.77 KB, patch)
2009-12-19 06:33 UTC, Maxim Ermilov
needs-work Details | Review
Port runDialog to css. (10.45 KB, patch)
2010-01-17 22:38 UTC, Maxim Ermilov
none Details | Review
Corrected patch (10.51 KB, patch)
2010-01-20 23:04 UTC, Maxim Ermilov
none Details | Review
Port runDialog to css (17.32 KB, patch)
2010-02-24 15:52 UTC, Maxim Ermilov
reviewed Details | Review
Port runDialog to css (18.79 KB, patch)
2010-02-26 10:43 UTC, Maxim Ermilov
none Details | Review
Error message without patch applied (6.46 KB, image/png)
2010-02-26 10:55 UTC, drago01
  Details
Error message with the patch applied (7.79 KB, image/png)
2010-02-26 10:55 UTC, drago01
  Details
Port runDialog to css (18.81 KB, patch)
2010-02-26 16:37 UTC, Maxim Ermilov
committed Details | Review
Use Lightbox in runDialog (3.20 KB, patch)
2010-02-26 18:50 UTC, Maxim Ermilov
committed Details | Review

Description Maxim Ermilov 2009-12-19 06:33:09 UTC
Created attachment 150052 [details] [review]
Patch for this bug

Bind <Ctrl>+<Tab> for run in terminal.
Port runDialog to css.
Add app list.
Comment 1 Florian Müllner 2009-12-19 11:55:14 UTC
*** Bug 604958 has been marked as a duplicate of this bug. ***
Comment 2 Colin Walters 2010-01-08 21:21:58 UTC
Review of attachment 150052 [details] [review]:

Hi Maxim, this is a good start!  I think we need some design before doing too much more work on this though; how exactly the user interface should look and function isn't entirely clear to me.

I'm tempted for now actually to take the old gnome-panel code and either move it into gnome-settings-daemon or do the work to have a child process in gnome-shell.

It might be worth breaking out the CSS changes into a separate patch though?
Comment 3 Maxim Ermilov 2010-01-17 22:38:29 UTC
Created attachment 151634 [details] [review]
Port runDialog to css.

Bind <Ctrl>+<Tab> for run in terminal.
Comment 4 Dan Winship 2010-01-20 21:56:52 UTC
(In reply to comment #3)
> Bind <Ctrl>+<Tab> for run in terminal.

you mean <Ctrl>+<Return>
Comment 5 Maxim Ermilov 2010-01-20 23:04:05 UTC
Created attachment 151886 [details] [review]
Corrected patch

Fixed typo
Comment 6 Colin Walters 2010-01-21 22:46:36 UTC
Thanks for updating the patch!  So I have two high level concerns here:

* As I mentioned before the UI really needs design (visual and interaction).  I really don't like the list of apps on the left at the moment.  This depends somewhat on what we do for more-applications, especially more-applications-search.

Any other opinions on this?

* It makes alt-f2 noticeably slower to come up the first time; not sure where the blame lies, but we do read a lot of application data, create a lot of ClutterActors etc.  Will need profiling.
Comment 7 Maxim Ermilov 2010-02-24 15:52:20 UTC
Created attachment 154601 [details] [review]
Port runDialog to css

Merge with HEAD.
Comment 8 drago01 2010-02-25 18:57:57 UTC
Review of attachment 154601 [details] [review]:

Looks good and gets us one stop closer to port everything to CSS ;)

There are some issues that need fixing (one of them might be actually a bug in St.Label), rest is minor though.

::: data/theme/gnome-shell.css
@@ +759,3 @@
+    background-image: url("dialog-error.svg");
+    width: 36px;
+    height: 36px;

The error icon (24x24px) was centered in a 36x36px box, you do stretch the icon to be 36x36 sized here (i.e it is bigger that it is used to be). 

Which looks somehow odd ...

::: js/ui/runDialog.js
@@ +207,3 @@
         global.stage.add_actor(this._group);
 
+        this._boxH = new St.Bin({ style_class: 'run-dialog-box',

I am not sure the name _boxH makes much sense anymore, I'd just call it _box

@@ +227,1 @@
+        this._entry = entry.clutter_text;

Should probably be renamed to _entryText

@@ +230,1 @@
+        this._errorBox = new St.BoxLayout({});

You don't need to pass {} here just do ()

@@ +236,1 @@
+        this._errorBox.add(errorIcon, {});

this._errorBox.add(errorIcon) should be enough.

@@ +239,3 @@
 
+        this._errorMessage = new St.Label({ style_class: 'run-dialog-error-label'});
+        this._errorMessage.clutter_text.line_wrap = true;

This somehow does not work as expected the text does not get wrapped but truncated.

foo ...

instead of

foo
bar

Which results into only a part of the error message being actually visible.

@@ +332,2 @@
                 this._errorBox.show();
+                this._boxH.style_changed();

Why is that needed?
Comment 9 Maxim Ermilov 2010-02-26 10:43:49 UTC
Created attachment 154742 [details] [review]
Port runDialog to css

> This somehow does not work as expected the text does not get wrapped but
> truncated.

Strange.. It work fine for me...(Clutter 1.0.8.1)

> Why is that needed?

Without this, message will show with delay.

> The error icon (24x24px) was centered in a 36x36px box, you do stretch the icon
> to be 36x36 sized here (i.e it is bigger that it is used to be).

It was icon with size 36x36. Now(with same css style), image centered.
Comment 10 drago01 2010-02-26 10:55:08 UTC
Created attachment 154743 [details]
Error message without patch applied
Comment 11 drago01 2010-02-26 10:55:27 UTC
Created attachment 154744 [details]
Error message with the patch applied
Comment 12 drago01 2010-02-26 10:57:05 UTC
(In reply to comment #9)
> Created an attachment (id=154742) [details] [review]
> Port runDialog to css
> 
> > This somehow does not work as expected the text does not get wrapped but
> > truncated.
> 
> Strange.. It work fine for me...(Clutter 1.0.8.1)

Odd, it doesn't here (see screenshots) ... using jhbuild with the clutter-1.0 branch.

> > Why is that needed?
> 
> Without this, message will show with delay.

Well removing it does not make any difference here, but even so wouldn't queue_relayout() be better suited?

> > The error icon (24x24px) was centered in a 36x36px box, you do stretch the icon
> > to be 36x36 sized here (i.e it is bigger that it is used to be).
> 
> It was icon with size 36x36. Now(with same css style), image centered.

This looks fine now.
Comment 13 Maxim Ermilov 2010-02-26 16:37:53 UTC
Created attachment 154767 [details] [review]
Port runDialog to css
Comment 14 drago01 2010-02-26 17:11:22 UTC
Review of attachment 154767 [details] [review]:

Looks good now, as discussed on IRC we go with this way instead of wrapping.
Comment 15 drago01 2010-02-26 17:11:26 UTC
Review of attachment 154767 [details] [review]:

Looks good now, as discussed on IRC we go with this way instead of wrapping.
Comment 16 Maxim Ermilov 2010-02-26 18:50:23 UTC
Created attachment 154783 [details] [review]
Use Lightbox in runDialog
Comment 17 Florian Müllner 2010-02-26 19:48:58 UTC
Review of attachment 154783 [details] [review]:

It might make sense to split the "port lightbox to st/css" part from the "use lightbox in run dialog" part. If you want to commit the patch as-is, you should at least update the commit message - right now it skips over the lightbox part.

Something like:
Port Lightbox to CSS and use it in runDialog

Make Lightbox stylable and add a common style. Use it in runDialog.
Comment 18 drago01 2010-03-31 15:45:29 UTC
Looks fixed to me.