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 653996 - [UI] Use GtkOverlay for the status bar
[UI] Use GtkOverlay for the status bar
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Interface
git master
Other All
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks: 654007 665470
 
 
Reported: 2011-07-05 09:47 UTC by Alexandre Mazari
Modified: 2011-12-14 15:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[UI] Use GtkOverlay for the status bar (36.38 KB, patch)
2011-07-05 09:47 UTC, Alexandre Mazari
none Details | Review
[UI] Use GtkOverlay for the status bar (36.38 KB, patch)
2011-07-05 10:05 UTC, Alexandre Mazari
rejected Details | Review
Use a GtkOverlay for the statusbar instead of shipping GeditOverlay (37.01 KB, patch)
2011-12-04 18:31 UTC, Claudio Saavedra
committed Details | Review

Description Alexandre Mazari 2011-07-05 09:47:18 UTC
Use GTK's overlay implementation instead of the version imported from Gedit.
Comment 1 Alexandre Mazari 2011-07-05 09:47:20 UTC
Created attachment 191281 [details] [review]
[UI] Use GtkOverlay for the status bar

Use the recently introduced GtkOverlay widget for our floating status bar.
This remove the need to use the imported GeditOverlay. Thus removing the
related files.
Comment 2 Alexandre Mazari 2011-07-05 10:05:58 UTC
Created attachment 191283 [details] [review]
[UI] Use GtkOverlay for the status bar

Use the recently introduced GtkOverlay widget for our floating status bar.
This remove the need to use the imported GeditOverlay. Thus removing the
related files.

Fix overfluous newline.
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2011-07-30 09:31:26 UTC
Review of attachment 191283 [details] [review]:

Does this still do the escaping-from-mouse thing? I don't seem to find that part of the magic.

::: embed/ephy-embed.c
@@ -44,3 @@
 #include "ephy-web-view.h"
-#include "gedit-overlay.h"
-#include "ephy-overlay-escaping-child.h"

Did you forget to git rm ephy-overlay-escaping-child.h?

::: lib/widgets/Makefile.am
@@ -25,3 @@
-	gedit-overlay-child.h			\
-	ephy-overlay-escaping-child.c		\
-	ephy-overlay-escaping-child.h

git rm the ephy-overlay ones!
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2011-07-30 09:31:30 UTC
Review of attachment 191283 [details] [review]:

Does this still do the escaping-from-mouse thing? I don't seem to find that part of the magic.

::: embed/ephy-embed.c
@@ -44,3 @@
 #include "ephy-web-view.h"
-#include "gedit-overlay.h"
-#include "ephy-overlay-escaping-child.h"

Did you forget to git rm ephy-overlay-escaping-child.h?

::: lib/widgets/Makefile.am
@@ -25,3 @@
-	gedit-overlay-child.h			\
-	ephy-overlay-escaping-child.c		\
-	ephy-overlay-escaping-child.h

git rm the ephy-overlay ones!
Comment 5 Claudio Saavedra 2011-12-04 18:31:13 UTC
Created attachment 202760 [details] [review]
Use a GtkOverlay for the statusbar instead of shipping GeditOverlay

Instead of escaping the cursor, we align the overlay at the opposite side
of the window. This is consistent with nautilus.
Comment 6 Xan Lopez 2011-12-05 18:42:05 UTC
Review of attachment 202760 [details] [review]:

I really prefer the current behavior, but I'm OK with committing this not to not block future work. But please let's go back to the design team and propose to keep things as we have them.

::: embed/ephy-embed.c
@@ +519,3 @@
+		gtk_widget_set_halign (widget, GTK_ALIGN_START);
+	}
+

No braces for one line clauses, and indentation seems to be off.
Comment 7 Claudio Saavedra 2011-12-05 20:29:34 UTC
Comment on attachment 202760 [details] [review]
Use a GtkOverlay for the statusbar instead of shipping GeditOverlay

I need to fix this first...

Gtk-CRITICAL **: gtk_widget_get_preferred_width_for_height: assertion `height >= 0' failed

Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -9 and height -9

Gtk-CRITICAL **: gtk_widget_get_preferred_width_for_height: assertion `height >= 0' failed

Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -9 and height -9

Gtk-CRITICAL **: gtk_widget_get_preferred_width_for_height: assertion `height >= 0' failed

Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -9 and height -9

Gtk-CRITICAL **: gtk_widget_get_preferred_width_for_height: assertion `height >= 0' failed

Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -9 and height -9
Comment 8 Claudio Saavedra 2011-12-13 18:56:54 UTC
That was a GTK+ bug. Fixed in bug 666109.
Comment 9 Claudio Saavedra 2011-12-14 15:05:26 UTC
Comment on attachment 191283 [details] [review]
[UI] Use GtkOverlay for the status bar

Changed status in the wrong patch. Blame git bz.