Gtk3 Popover outside the window - menu

How can i make Popover appears outside application window like menu in gnome-shell panel? Or should i use another GTK widget?

This should be possible (at least on wayland).
gtk_popover_set_constrain_to (GtkPopover *popover,
GtkPopoverConstraint constraint);
"GTK_POPOVER_CONSTRAINT_NONE"
and
gtk_popover_set_pointing_to (GtkPopover *popover,
const GdkRectangle *rect);

Related

Fullscreen GTK Box should only fullscreen webkit2gtk window, but fullscreens whole app instead

I am attempting to make a Webkit2gtk browser in Rust using WebKit2Gtk-rs. When the WebView attempts to go into fullscreen, it makes the entire application fullscreen, including stuff outside the webview. screenshot of application
What I am doing is creating a GTK Box then stuffing the two Gtk Buttons into it, along with the Webkit2Gtk WebView.
Main Window -> Gtk Box -> Button1, Button2, WebView.
I would like for only that one element, WebView to go fullscreen.
Source code for the relevant file can be found here.

PyQT Dialog Window with Toolbar

What is the standard approach of adding a toolbar to a dialog window in PyQT? I seem to be able to add toolbars only to a main window class.
Unfortunately this feature doesn't seem to be supported. See
Can you add a toolbar to QDialog? for answers to the same situation but in C++ and Qt.
However maybe you can just use a QMainWindow as a dialog window with a toolbar?

Enable mouse scroll in flipview children

In my WinJS application, I use a flipview, with a Listview inside it.
The listview as a long content, so it is scrollable : the scrollbar is visible, I can scroll with the finger on a touch screen, but the mouse wheel doesn't work.
After looking at the flipview source code, I added the win-interactive class on my listview, and now I can use the mouse wheel to scroll, but the problem is that the scroll also applies to the flipview container : the mouse scroll directly between the different flipview items.
Is there a way to enable the scroll on the listview, without modifying the flipview behavior ?
Yes there is, you can subscribe to the mousewheel event being fired in your ListView and stopPropagation() from there to the FlipView.

iPhone 5 (4") bottom toolbar not responding

I'm trying to modify an app to work with the new iPhone 5, 4" screen.
I've added the new launch image, "Default-568h#2x.png".
After that everything seemed good. Middle portion of my views is resizing ok.
However I've noticed that in a view where I have a bottom toolbar, the buttons on the toolbar are unresponsive. It looks ok, but tapping buttons does nothing. Same code run in simulator with 3.5" screen works fine.
Any ideas?
This view is within a navigation controller. It consists of a table view and toolbar. The tableview is set to resize height.
I had the same problem and noticed that my window.frame.size.height was still 480.0.
Solved this problem by enabling Full Screen at Launch for the MainWindow.xib file:
Steps:
Open MainWindow.xib
Select the Window element
Open the Attributes Inspector
Under Window section, enable Full Screen at Launch
There are two solution to this problem :
If you are using MainWindow follow these steps :
a. Select MainWindow.xib
b. Select 'Full Screen at Launch' from Windows option available in Attributes Inspector.
If your application doesn't contain MainWindow then just add 'Self.View.Frame = [UIScreen mainScreen].bounds' in ViewDidLoad.
I your project has MainWindow.xib then you must have to set all splash images in order to compatible you app for iPhone 5 display.
My Project wasn't using MainWindow.xib. I added the following to viewDidLoad in View Controllers of all the screens:
self.view.frame = [UIScreen mainScreen].bounds;
add
self.window.frame = [UIScreen mainScreen].bounds;
in this method:
-(BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary*)options
in your %your app name%AppDelegate.m file

Changing application menubar in Eclipse RCP

I want to change the position of the application menu in an Eclipse RCP application. This is what my UI designer wants it to look like:
Note that you have the menubar on the left and a tab-bar on the right, thus saving a line of vertical space. I want the menu to still be the application menu, and work with all the other Eclipse extensions for controlling it. I just want it in a different place. Can this be done in Eclipse/SWT?
Not by default, certainly not in Eclipse 3.x or even Eclipse 4.2 using the Workbench. RCP applications fill in the main menu bar using their subclass of org.eclipse.ui.application.ActionBarAdvisor, filling in org.eclipse.jface.action.MenuManagers. All of the default extensions in 3.x are also based on interacting with MenuManagers. The SWT Menu used in the menu bar doesn't allow that kind of overlay, AFAIK.
In Eclipse 4 the menus are described in a model, and then a variety of renderers (defaults provided by org.eclipse.e4.ui.workbench.renderers.swt.WorkbenchRendererFactory) are responsible for creating the SWT widgets. In theory it's possible to replace some or most of those renderers (in effect implementing your own menu system using SWT composites or buttons or canveses) but that sounds like a lot of work.

Resources