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 601864 - [StAction, StPopup] Import NbtkAction, NbtkPopup
[StAction, StPopup] Import NbtkAction, NbtkPopup
Status: RESOLVED WONTFIX
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2009-11-14 01:52 UTC by Colin Walters
Modified: 2010-01-29 19:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[StAction, StPopup] Import NbtkAction, NbtkPopup (31.84 KB, patch)
2009-11-14 01:52 UTC, Colin Walters
needs-work Details | Review
[StAction, StPopup] Import NbtkAction, NbtkPopup (31.87 KB, patch)
2009-11-16 19:22 UTC, Colin Walters
needs-work Details | Review
[tests] Add popup.js test (2.15 KB, patch)
2009-11-16 19:22 UTC, Colin Walters
reviewed Details | Review

Description Colin Walters 2009-11-14 01:52:02 UTC
Modifications:

* Adjusted to use st_theme_node in allocation code
Comment 1 Colin Walters 2009-11-14 01:52:05 UTC
Created attachment 147706 [details] [review]
[StAction, StPopup] Import NbtkAction, NbtkPopup
Comment 2 Nageswara Rao M 2009-11-14 04:18:33 UTC
Review of attachment 147706 [details] [review]:

::: src/st/st-popup.c
@@ +177,3 @@
+{
+  gint i;
+  gfloat min_height, nat_height;

tried compiling with this patch.. got two uninitialized warnings, being treated as errors. 
min_height and nat_height needs to be initialized with zero.(in case, if children->len is zero, we may run into issues)
Comment 3 Colin Walters 2009-11-16 19:22:34 UTC
Created attachment 147926 [details] [review]
[StAction, StPopup] Import NbtkAction, NbtkPopup

Modifications:

* Adjusted to use st_theme_node in allocation code
Comment 4 Colin Walters 2009-11-16 19:22:40 UTC
Created attachment 147927 [details] [review]
[tests] Add popup.js test
Comment 5 Owen Taylor 2009-11-24 17:25:59 UTC
Review of attachment 147926 [details] [review]:

The procedure I followed for all the other St widgets was:

 - Use MX as a source rather than NBTK (MX was then a branch, now is a separate module.) This way, the MX and St sources are related *only* by the sed job, and not by whitespace differences.
 - Have a commit that imported the file with only the st => mx change
 - Do other changes, like st_theme_node usage on top of that

(I wasn't always consistent with whether I fixed up includes for differences in compilation environment in the first commit, but I think it's probably cleanest not to - to only add them to the Makefile.am in the followup change.)

I'd really like to see this done the same way.
Comment 6 Owen Taylor 2009-11-24 18:45:48 UTC
Review of attachment 147927 [details] [review]:

Looks OK to me

::: tests/interactive/popup.js
@@ +32,3 @@
+    }
+    popup.show();
+    popup.set_position(100, 100);

Is it weird (does it look like a malfunctioning test to someone trying it out) to have the popup pop up right over the button rather than beneath it?

::: tests/testcommon/test.css
@@ +57,3 @@
+    background-color: #ffffff;
+}
+StPopup StButton {

Would rather it stayed consistent with the rest of the file and had blank lines between the different styles.
Comment 7 Owen Taylor 2010-01-29 19:33:09 UTC
I think at this point if we wanted to do this we'd start from scratch, so I'm going to close this to clean up the bug list a little bit.