Programming :: Use Gtk_window_set_gravity Function To Init Window Location On Screen?
Oct 18, 2010
I use gtk_window_set_gravity function to init window location on screen. I use different parameter value in Gravity,window location always at top left of screen.I use ubuntu 10.04. Code by follow:
GtkWidget * window, *label;
gtk_init(p_argc, p_argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
[code]....
View 2 Replies
ADVERTISEMENT
Jul 12, 2010
I have a project in which many processes run. p1,p2,p3.
->There are some .so files are included in some process when needed example ppp.so in process p1 (when ppp is needed and will go like a plugin) but it has a init () function how a process includes a init() function ?
->process p1 has main function i.e main()
->so evry process has main() right ?
what is the difference between init () and main () functoins. where is init () used and how many init() a process van have ?
View 3 Replies
View Related
Nov 16, 2010
Code:
#include <iostream>
using namespace std;
[code]...
View 1 Replies
View Related
May 18, 2010
I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.
View 2 Replies
View Related
Sep 17, 2010
I have written an init script and placed it in /etc/init.d/ directory.What I would like to know is, will the script run automatically or we need to install the script using "install_initd" command.If I have to invoke this command manullay, what will be the best place to do this ? Can I add this to "/etc/init.d/rcS" file
View 6 Replies
View Related
May 24, 2010
I want to declare a function in a function, but had no success till now, see the error code below and visit the project at sourceforge
[Code]...
View 14 Replies
View Related
Jun 20, 2010
I looked on the net for such function or example and didin't find anything, thus after having made one i guess it would be legitimate to drop it to see what others thinks of it.
#!/bin/bash
addelementtoarray()
{
local arrayname=$1
[code]....
View 10 Replies
View Related
Dec 23, 2010
I just have install Mac-theme on my Leny, and it make's my Window-border from right to Left, i want to have these on right(as by default in debian)...
View 5 Replies
View Related
Feb 3, 2011
Does anyone know if it's possible to specify a screen location when opening a window in gnome? I have created a custom launcher on the top panel in gnome. It launches a bash script that I wrote, but the script requires input that can change. The launcher command is like this:
Code:
gnome-terminal -x bash -c "buildit"
The functionality of it works great. What I would like to do however, is control where the gnome-terminal window actually opens. It seems be random and based on other windows that are open. So sometimes it opens on the top-left of the screen, other times it's the bottom-left, etc.
I use Compiz as my window manager (e.g. under System > Preferences > Appearance > Visual Effects I have chosen the "Normal") with an Nvidia 8600GT (driver version is 260.19.06).
Is there some way I can control the screen location (maybe specify the x,y coordinate) of where I want this window to open? Ideally it would be great to force the window to open directly below the icon in my panel. Is this even possible?
View 1 Replies
View Related
Mar 19, 2011
I used to use ubuntu studio, which when you double clicked on the bar at the top of a window it would slide in under itself. I had to reinstall so I downloaded the Ubuntu 10.10 alt CD, but now double clicking maximizes, how do I change it back.
View 2 Replies
View Related
Sep 3, 2010
F13 with default GhostScript 8.71Trying to crop an eps file.The window size adheres to command but the location(offset) never does.Tried several different layouts and none work.Quote:ps2pdf -dEmbedAllFonts=true -dProcessColorModel=/DeviceCMYK -dPDFSETTINGS=/prepress -r300 -g1086x1201 -dPDFOPT someeps.eps test.pdfYields the same asQuote:ps2pdf -dEmbedAllFonts=true -dProcessColorModel=/DeviceCMYK -dPDFSETTINGS=/prepress -r300 -g1086x1201+100+100 -dPDFOPT someeps.eps test.pdf
View 9 Replies
View Related
May 13, 2010
I want to type something in console that will open some location (on example home dir) in already opened nautilus window. Is it possible?
View 1 Replies
View Related
May 1, 2010
I was messing around in the Window Manager Theme settings area and changed the theme to another one and I was immediatley logged off and now I cannot log back in. It seems like X is having a hard time displaying whatever theme I chose.I want to manually switch back to Albatross but I am unsure of where that setting is stored. Where is the configuration file for these themes stored?
View 4 Replies
View Related
Nov 2, 2010
I have an application originally built for Unix Solaris that opens a Ghostview window to display maps on the desktop. When we recompiled the application for Red Hat Enterprise Linux 5, the Ghostview window opens and displays as requested, however I find the window cannot be successfully moved from the top left corner of the desktop. This has never been a problem on Unix, which allows the window to be moved to any location. In Linux, when I attempt to move the window to any other location on the desktop, it immediately pops back to the top left corner. I sometimes need to compare two different Ghostview maps, which is tough to do when they both insist on staying in the same location.
View 3 Replies
View Related
May 20, 2010
Since school ended, I decided to finally wipe and due a clean upgrade to Slackware 13.0. Everything is great except one thing. When I want to save something in firefox, the "save as" window that popups up, that allows you to browse to right directory, popups too low. In my window manager(wmii), the bottom is cutoff. I want to have the window popup higher. Is this possible? In my previous install, I think the window would usually remember where it last was, but now it seems to always popup in the same location. I'm not sure if this is slackware, firefox or wmii issue. Also I tried another wm, Awesomewm, and it showed up in the same spot.
View 3 Replies
View Related
May 3, 2011
How do I move the Window control buttons when the window is in full screen mode? I.e.: I know how to go into gconf-editor:
Code:
gconf-editor --> apps --> metacity --> general --> button layout = ":minimize,maximize,close"
(I've intentionally disabled the menu...)
What I want is my window controls to be on the right side of the window when the window is in full screen mode.
Also I've had an issue with the Unity dockbar glitching out. I can still click on the buttons (i.e. the logout button) but it displays like a nintendo game inserted crooked. Is there a way to 'restart' unity without log out/ log in?
Any one else experienced any glitches with unity auto hiding/showing?
View 4 Replies
View Related
Jul 17, 2011
I have asked for a video capturing software before but recommend a GOOD screen recorder where you can select the window/window size the axis and also a good editing software which will render/export into FULL 720p HD
View 2 Replies
View Related
Oct 30, 2010
Is there any command /utility in linux that would Take screen shot of non focused window or minimized Window?
View 3 Replies
View Related
Sep 16, 2010
fit a surface i.e. W(x,y) using svdfit() provided by "Numerical Recipes in C". svdfit() is written for curve fitting and not for surface fitting.But one can use svdfit(), as claimed by authors of NR book, to do surface fitting. On page 680 of NR book, authors have given a hint on how to use svdfit() for fitting a surface. But I have not understood it.This link may be helpful (Chapter 15 th is relevant here.):[URL]This is my problem:
Code:
I have a set of 100 numbers. I want to fit a 2-Dimensional function W(x,y) to these numbers.
[code]....
View 2 Replies
View Related
Jul 14, 2010
This is a minor annoyance, but I'd like to know how to fix it... When starting Fedora 12 with KDE, the KDE icon is twice the size of the other icons. I figure it is easy to make it the same size as all the other icons, but I don't know how. If this seems confusing, I am referring to the screen that appears after you enter your password and before the KDE desktop appears. A set of icons appear one at a time. The KDE icon is clearly twice as large as the others.
View 4 Replies
View Related
Feb 23, 2011
This is my first init script, so far, it atleast starts the daemon but it fails at creating a pid, so later on I can use to, to either stop it or reload it. Here's the current code: Further more, the script returns ok that it started the pid, when in fact, the pid fails in the background, this script needs MUCH improvement, some help would be nice to fix this script. :/
Code:
#! /bin/sh
### BEGIN INIT INFO
# Provides: znc
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
[Code]...
View 2 Replies
View Related
Jul 9, 2010
I have an a script in /etc/rc.d/init.d script that I would like to start and stop my sample application. I have named my script "foo", then I can start running my application my typing $ foo start but this does not return [OK] like other scripts do and does not return to shell prompt. My application is basically like this
int main()
{
do {
printf("Hi
");
sleep(1);
} while (1);
}
What is missing from my application that prevents from returning the shell prompt?
View 3 Replies
View Related
Jul 19, 2011
I have an initscript that behaves slightly differently in the UK than it does in the US. Not a huge issue, but I'd like to know why and how to fix it. I imagine it has something to do with localization, but I'm at a loss as to what it could be, as it's just bash.
in the UK:
Code:
[root@server ~]# /etc/init.d/worker
status}
in the US:
[Code]...
View 6 Replies
View Related
Aug 23, 2010
Recently I tried installing Ubuntu via CD, I burned the Image like the website said, It booted then it gave a black screen saying init was not found or something in that nature. I tried a few more times with no luck. I am making another CD to see if it works, hopefully it will,. Its a relatively old HDD. It has Win 98 on it. 9.18 GB space.Quantum Fireball lct 10 3.5" series.
View 5 Replies
View Related
Jan 1, 2011
I've been dual booting 10.10 with Windows7 for about a month. Today is the first time I've encountered a serious problem.
This morning, nothing functioned properly after trying to open several programs. The computer seemed to be "frozen", although the mouse was working fine.
I decided to reboot, but then encountered an even bigger problem.
It failed to boot and got this message: no init found. try passing init= bootarg
The problem now is that it requires a Live CD session and I keep getting this: GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
In case it matters, I didn't install 10.10 from an ISO, I just upgraded from 10.04.
View 2 Replies
View Related
Jul 8, 2010
I'm running a Debian based Linux compiled for ARM9 hardware. I am trying to auto start a process on bootup but occasionally I find that my startup script becomes empty (i.e. the file still exists but has not data). The script is located in /etc/init.d/S91-sercom
Here's the script:
Code:
#!/bin/sh # /etc/init.d/S91-sercom
# Start the Serial Communication Protocol Program at boot
echo "Starting Serial Communication"
[Code]....
View 1 Replies
View Related
Jan 20, 2010
Ubuntu 9.10 will not boot! System froze this morning, I restarted and it is now failing to boot. Starts loading grub and I get this message:
mount: mounting /dev/disk/by-uuid/04aa3697-7bc0-45b5-b86a-77a1e6534bd5 on /root failed: invalid argument
mount: mounting /sys on /root/sys failed: no such file or directory
mount: mounting /dev on /root/sys failed: no such file or directory
[code]....
I booted with 9.04 LiveCD discovered the drive could not be mounted-ran fsck -ln and it told me the drive has no valid partition table. I have had intermittent problems mounting flash drives before this, so I'm kind of worried it might be a hardware issue.Also have files on that drive I would rather not lose, so reinstalling is hopefully a last resort.
View 9 Replies
View Related
Jan 15, 2011
Is there a way to get a simple 'lock screen' function and Icon that will allow one to lock the screen etc by simply clicking a button? This used to be available in 'xscreensaver' but I cannot figure out how to get a similar function through 'gnome-screensaver'.
View 5 Replies
View Related
Apr 7, 2011
My screen capture software, shutter and system's default "take screenshot", do not function normal any more. It can only capture the desktop wallpaper, not any other elements on the desktop, nor any other opened windows. It's just like taking an x-ray picture by passing all the other objects/elements/running programs on top of the desktop wallpaper. Any ideas? I am using Fedora 14 64 bit. The screen capture software were working fine, though.
View 1 Replies
View Related
Oct 12, 2010
am trying to interface ade7758(adc) to at91sam9261...i have written a sample code which registers an spi driver and sends an address to ade7758 and receives a data...every thing is fine.My device is registered but kernel is giving a crash message....below is the message....
[Code]...
View 6 Replies
View Related