-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
edit_box not working (walkabout) #217
Comments
Note the previous conversation is here. shoes/shoes-deprecated#282 This seems to be something very strange on David's system. I can't think of any way for Shoes to not have edit_boxes. You could try the 3.3.1 beta - |
Not a loss, but not a gain either: I get the exact same faulty display... :-/ |
Which version of 15.10 are you using (there are many). I'll have to put in a VM and see if I can recreate your problem. That takes time so I don't want to pick an Ubuntu that isn't the same as yours. |
works for me (ubuntu 14.04) ! |
I really can't think of how this could happen. I don't think you can disable multi line text boxes unless there is some very odd theming going on and that would break other apps, not just Shoes. He's not getting messages on the launch terminal or in Shoes console. How could this happen? |
it's ok on win7 also ! |
Since shoes uses the systems Gtk3, It might be useful to know what @Dassadar gtk lib is. For instance : on my 14.04 system
which matches up with Syntapic's number of 3.10.8 |
I can confirm @Dassadar problem. I installed 15.10 Desktop (AMD aka x86_64) in a OracleBox VM and samples/simple-control-sizes.rb is missing the edit_box !!! I'm using the Shoes 3.3.1 beta. Gtk3 appears to be 3.16.7 so that's not wildly newer. FWIW it only takes an hour or two install and I still hate the new desktop. 15.10 doesn't ship with alternates like Gnome Shell either. |
When closing the window from the command below, we do get a small clue.
|
I took this opportunity to update the wiki with how to build Shoes from source. https://github.com/Shoes3/shoes3/wiki/Building-Shoes-on-Linux so some good has come from this bug since that page was out-of-date-by-a-lot. Edit_boxes are missing in that Shoes and the gtk.c:1233 |
for info : Edit_box is a gtk_text_view inside a gtk_scrolled_window, maybe problem is coming from alternate version of gtk_scrolled_window |
@passenger94 - I'll try that tomorrow. It's late here. |
I can see one problematic change between 3.10 and 3.16 in gtkscrolledwindow.c i don't know if it's what we are dealing with but could be ! (the alt version says explicitely that it doesn't have a window, like in 3.10 : So, If gtk_scrolled_window_alt_new is the problem, i would next try this : Don't know but smells strong ... |
@passenger94 - That fixed it on 3.16. Wonderful! That fix crashes 3.10 so we do have another interesting problem. We need to test the Gtk version version at runtime (not compile time). |
Nice !
maybe looking at the return of gtk_widget_get_has_window() is enough ? Edit : sorry, it's confusing ... |
Seems to work. |
no, there we are checking ourself !!! ;-) if (gtk_widget_get_has_window(scrolledwindowAlt->parent_instance)) {
gtk_widget_set_has_window(GTK_WIDGET(scrolledwindowAlt), TRUE);
} else {
gtk_widget_set_has_window(GTK_WIDGET(scrolledwindowAlt), FALSE);
} or yes, better, like you did gtk_widget_set_has_window(GTK_WIDGET(scrolledwindowAlt), gtk_widget_get_has_window(scrolledwindowAlt->parent_instance)) hmmm, probably a cast is missing : GTK_WIDGET((scrolledwindowAlt->parent_instance)) |
parent-instance or parent->instance don't exist. I'm busy so I can't look it up myself |
just corrected sorry, parent_instance |
ok this works on 3.10 gtk_widget_set_has_window(GTK_WIDGET(scrolledwindowAlt),
gtk_widget_get_has_window(GTK_WIDGET(&scrolledwindowAlt->parent_instance))); parent_instance is not a pointer ! |
For info, This change appeared in 3.16 ! |
That works on Ubuntu 15.10. I've uploaded a new beta (same address as above) if @Dassadar would be so kind to try it and report back. In my 15.10, the download does solve the problem. |
This fixes: thanks for the investigation! |
Hello,
I have an issue with edit_box which are not displaying.
For example, here is the result for simple-control-sizes.rb sample:
I am on Ubuntu 15.10, and my Shoes build is 3.3.0 r2333.
Can you please help?
Thx in advance,
David
The text was updated successfully, but these errors were encountered: