gnome

Column-Size on GTK TreeViews

How can I set the horizontal size of a specific column on a GTK-TreeView? I have 4 columns on my TreeView and the last one expands on the rest of the free space. How can I set the first or second column to be expanded on the free space os set a fixed width on all columns? ...

How to write a GNOME applet with Ruby

Is there a good guide or tutorial for writing GNOME applets with Ruby? ...

Are there keyboard shortcuts to access the desktop menu in Gnome or how can I create them?

I would like to access the desktop menus for Applications, System, etc. via my keyboard instead of my mouse. Edit: ctrl-alt-tab only lets me choose amongst the windows I have opened. There is no option to choose the desktop menus. Nothing happens with ctrl-alt-esc. (I've looked at various pages for gnome desktop shortcuts). ...

How can I have two instances of rhythmbox running or how to program rhythmbox to start playing at previous position in a mp3 file?

I like to alternate between listening to internet radio and other things e.g. a podcast, but don't like to lose my place in the podcast file. And oddly, sometimes in the process of fast forwarding in an audio file, rhythmbox just quits. Or instead of having two instances of rhythmbox, would I be able to write a program so that it can au...

Service menu on Gnome desktop environment

Is there any way to create a service menu on Gnome? In kde it's simply a .desktop file placed in $HOME/.kde/share/kde4/services/ServiceMenus/ Does it exist a similar thing in Gnome? ...

Stack level too deep error Ruby-Gnome2

I have a Gtk::TreeView with a Gtk::TreeModel and a Gtk::TreeModelFilter. The Tree Model is like this: category1 --> actual row of data category2 --> actual row of data I want to filter on the contents of @search_entry, but I want category1 to be displayed if a row under it is still visible, and category2 to be hidden if there are ...

Implementing autosave w/o disruption

I have been hacking on the code for Xournal in order to add auto-save functionality. My initial implementation was very dumb: every 60 or so seconds, do a save. The feature ostensibly works. However, after testing it out for a while, I've noticed that when auto-save runs, the application temporarily freezes up, which is quite annoying i...

How to make Linux C++ GUI apps

What is the easiest way to make Linux C++ GUI apps? I'm using GNOME and ubuntu 8.10. ...

Switch GNOME Terminal Profile from the command line

If I'm running gnome-terminal with multiple tabs open, is it possible to switch the profile of a given tab at the bash prompt, with instant effect, and without altering the profile of the other tabs? I understand how to use gconftool or gconftool-2 to change elements of a profile (such as the background), but I don't know how to actuall...

Docked Panel on a Single X Window Workspace

I am using the Xlib function XChangeProperty function to create a docked panel window (like gnome-panel). I am setting these properties: _NET_WM_WINDOW_TYPE to _NET_WM_WINDOW_TYPE_DOCK, _NET_WM_STRUT to a height, and _NET_WM_STRUT_PARTIAL to a height/full width. It is behaving as expected: screen space is reserved & other windows do no...

copy and paste from terminal with keyboard in linux (ubuntu)

Heyas So I'm trying to move away from using the mouse as much as I can (just a pet project). I know that in the terminal you can do c-k to cut a line and c-u to paste that line back into that same terminal, but I'm looking for something where I can copy a line in the terminal into gnomes clipboard so I can paste it into say a browser o...

Creating your own syntax highlighting in GEdit?

How do you add a 'keyword' to the GEdit list of keywords? I basiclly want to make the printf function look like a keyword. printf("Hello World\n"); ...

Great C tutorial?

I really want to learn C (I'm planning on joining an open source GNOME project). What would be a good tutorial? ...

Detect enter/exit session under KDE/Gnome with FreePascal

I'm asking this question after I got a very good answer to: How do I detect the 2 states of “Switch User” in Windows My intention is to find out if the Switch User under KDE/Gnome has a similar API call I can monitor with FreePascal. If not with FreePascal, at least the respective lib entry used in C/C++ ...

Programmatically determining individual screen widths/heights in Linux (w/Xinerama, TwinView, and/or BigDesktop)

I'm developing a little side-project to display multiple wallpapers on multiple screens under GNOME (something that apparently can't be done by GNOME itself or anything else). I've figured out how to do the main part of it (using the ImageMagick components, for the curious); I'm trying to automate the configuration system. To do that, I...

Gnome-Terminal, how to start in a different directory?

Hi, Whenever I start my console gnome-terminal in Ubuntu, it starts in the home directory. How can I make it start in a different directory say ~/myfolder? I tried to write cd ~/myfolder in ~/.profile but nothing happens. ...

show lyrics on ubuntu

Hi, I'm writing a little script for Ubuntu. My intention is to call rhythmbox lyrics plug-in with a global short-cut (configuring gnome) . I can call it from rhythmbox python console, but I don't know how to import rhythmbox built-in modules (eg. rhythmdb). Any ideas? ...

Respecting/reading the "Preferred Applications" settings in Gnome (Linux)

How do I find out the user's "preferred web browser", if they're using Gnome desktop environment? (I want to open a webpage, I don't need to know which browser the user prefers.) Some background: I'm trying to open a browser window (my homepage) with my Java app. if Java version is 1.6+, use Desktop.browse(url); otherwise, use BareBo...

Source code editor for linux?

What would be a Gnome source code editor, closest to Notepad++. I'm particularly interested in: Python auto-completion; Source-code highlighting; Basic text modigfication macroses. ...

How do I make a window move to the top of other windows in Gnome when that window already has the focus?

I have an application that sends the focus to other windows but those windows then don't automatically display themselves in the foreground, i.e. on top of all the other windows. Where can I configure the preferences of my window manager so that this is the default behaviour? In particular I'm using the Ctrl-0 and Ctrl-Shft-0 shortcuts ...