Search Results

Search found 550 results on 22 pages for 'cairo dock'.

Page 4/22 | < Previous Page | 1 2 3 4 5 6 7 8 9 10 11 12  | Next Page >

  • OS X Dock API? Retrieve OS X active application's icon with badges and other modifications.

    - by pokstad
    Is there an API for retrieving the icons of the currently open apps on Mac OS X? I am trying to retrieve all the icons of the active applications along with any badges on top of the application (i.e. number of new messages in mail, or current download rate in Transmission). Is there some sort of Dock API? The only mention of an OSX API for retrieving information about currently active applications I have been able to find is the Process Manager API, which does not mention the ability to poll the dock or retrieve icon data.

    Read the article

  • How can I write an autostarting dock app for the Mac?

    - by TreeUK
    I have an application I'd like to build that starts when you start the mac and will appear in the dock. I have some experience with Objective-C and iPhone dev but none with Mac dev, I'm also a PC user normally so I'm not au fait with the norms of Mac usage. Any guidance here is appreciated. How do you get an application to autostart? Can you run an app in the tray bar? (with the clock etc in) or do apps only run in the dock?

    Read the article

  • Can I hide running applications from the unity launcher?

    - by Chris Whelan
    When running UNE 10.10 I often have several applications running which on a traditional GNOME desktop environment would be running purely in the background and would only be visible from the system tray. Good examples would be tomboy when hidden or redshift. Unfortunately Unity shows a running application in the launcher (dock) for these applications even though they already have appindicators visible in the sys tray. Is there any way to configure/force Unity not to show icons in the dock for certain applications?

    Read the article

  • Snow Leopard dock - when I minimize files, where do they go?

    - by user40150
    I upgraded to Snow Leopard a bit ago. Recently, when I minimize files in any application the files disappear - no icon that I can find, showing how to bring to a dominant window any of the minimized files. I search, can't find, have to re-boot app., and lose data. Not good. When I minimize files, where do they go, how do I reopen them, and how can I change it so icons for all minimized files remain visible? Thanks

    Read the article

  • Graphics glitch when drawing to a Cairo context obtained from a gtk.DrawingArea inside a gtk.Viewport.

    - by user410023
    I am trying to redraw the part of the DrawingArea that is visible in the Viewport in the expose-event handler. However, it seems that I am doing something wrong with the coordinates that are passed to the event handler because there is garbage at the edge of the Viewport when scrolling. Can anyone tell what I am doing wrong? Here is a small example: import pygtk pygtk.require("2.0") import gtk from numpy import array from math import pi class Circle(object): def init(self, position = [0., 0.], radius = 0., edge = (0., 0., 0.), fill = None): self.position = position self.radius = radius self.edge = edge self.fill = fill def draw(self, ctx): rect = array(ctx.clip_extents()) rect[2] -= rect[0] rect[3] -= rect[1] center = rect[2:4] / 2 ctx.arc(center[0], center[1], self.radius, 0., 2. * pi) if self.fill != None: ctx.set_source_rgb(*self.fill) ctx.fill_preserve() ctx.set_source_rgb(*self.edge) ctx.stroke() class Scene(object): class Proxy(object): directory = {} def init(self, target, layers = set()): self.target = target self.layers = layers Scene.Proxy.directory[target] = self def __init__(self, viewport): self.objects = {} self.layers = [set()] self.viewport = viewport self.signals = {} def draw(self, ctx): x = self.viewport.get_hadjustment().value y = self.viewport.get_vadjustment().value ctx.set_source_rgb(1., 1., 1.) ctx.paint() ctx.translate(x, y) for obj in self: obj.draw(ctx) def add(self, item, layer = 0): item = Scene.Proxy(item, layers = set((layer,))) assert(hasattr(item.target, "draw")) assert(isinstance(layer, int)) item.layers.add(layer) while not layer < len(self.layers): self.layers.append(set()) self.layers[layer].add(item) if not item in self.objects: self.objects[item] = set() self.objects[item].add(layer) def remove(self, item, layers = None): item = Scene.Proxy.directory[item] if layers == None: layers = self.objects[item] for layer in layers: layer.remove(item) item.layers.remove(layer) if len(item.layers) == 0: self.objects.remove(item) def __iter__(self): for layer in self.layers: for item in layer: yield item.target class App(object): def init(self): signals = { "canvas_exposed": self.update_canvas, "gtk_main_quit": gtk.main_quit } self.builder = gtk.Builder() self.builder.add_from_file("graphics_glitch.glade") self.window = self.builder.get_object("window") self.viewport = self.builder.get_object("viewport") self.canvas = self.builder.get_object("canvas") self.scene = Scene(self.viewport) signals.update(self.scene.signals) self.builder.connect_signals(signals) self.window.show() def update_canvas(self, widget, event): ctx = self.canvas.window.cairo_create() self.scene.draw(ctx) ctx.clip() if name == "main": app = App() scene = app.scene scene.add(Circle((0., 0.), 10.)) gtk.main() And the Glade file "graphics_glitch.glade": <?xml version="1.0"?> <interface> <requires lib="gtk+" version="2.16"/> <!-- interface-naming-policy project-wide --> <object class="GtkWindow" id="window"> <property name="width_request">200</property> <property name="height_request">200</property> <property name="visible">True</property> <signal name="destroy" handler="gtk_main_quit"/> <child> <object class="GtkScrolledWindow" id="scrolledwindow1"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hadjustment">h_adjust</property> <property name="vadjustment">v_adjust</property> <property name="hscrollbar_policy">automatic</property> <property name="vscrollbar_policy">automatic</property> <child> <object class="GtkViewport" id="viewport"> <property name="visible">True</property> <property name="resize_mode">queue</property> <child> <object class="GtkDrawingArea" id="canvas"> <property name="width_request">640</property> <property name="height_request">480</property> <property name="visible">True</property> <signal name="expose_event" handler="canvas_exposed"/> </object> </child> </object> </child> </object> </child> </object> <object class="GtkAdjustment" id="h_adjust"> <property name="lower">-1000</property> <property name="upper">1000</property> <property name="step_increment">1</property> <property name="page_increment">25</property> <property name="page_size">25</property> </object> <object class="GtkAdjustment" id="v_adjust"> <property name="lower">-1000</property> <property name="upper">1000</property> <property name="step_increment">1</property> <property name="page_increment">25</property> <property name="page_size">25</property> </object> </interface> Thanks! --Dan

    Read the article

  • looking for a clock widget that is unaffected by the mouse

    - by Joshua Robison
    Between screenlets, cairo-dock widgets and plasma-widgets. One of them's gotta have this function; A widget that hovers above everything on the desktop but is completely unaffected by the mouse. I would use this by making a clock hover above everything and semi transparent. I also want to be able to click on windows underneath the clock. After some experimentation, the screenlets widgets do not do what I am asking. I can make them float above everything on the screen but I am not able to click on windows underneath them. I need the widget to be COMPLETELY unaffected by the mouse.

    Read the article

  • Is it possible to hide the dock icon programmatically

    - by Unicorn
    Is it possible to hide dock icon programmatically on demand. I know one way by which defining property "Application is agent (UIElement)" in plist we make the cocoa app as user agent. But this result in hiding the dock icon permanently. I am looking for a way where i can control visibility of dock icon. Any idea ?

    Read the article

  • Using gnome-do as a dock

    - by Manu
    Hello, I've recently removed the bottom toolbar, in Ubuntu, and replaced it with gnome-do, using the "Docky" theme. Things looks nice, but I have a couple of questions : The dock doesn't differentiate between a shortcut and the application itself when launched. What if I want to launch more than one time that app ? (ie. the console). The dock shows all apps launched, not just the apps launched on that particular desktop. Can I change this behavior ? I haven't found it in the preferences. (image from the blog "OMG Ubuntu", http://d0od.blogspot.com/ )

    Read the article

  • Making my computer an iPhone music dock?

    - by deddebme
    Are there any application which lets me play the music in my iPhone through the USB cable? It will be very convenient if I can just dock the phone (while the music is playing), and the music will come out from the computer's speakers instead of the speaker in the iPhone. Edit 1: Stock iPhone dock does have a line-out jack, thanks SidneySM for reminding me. Now the problem is, even though I have select Line In as the Sound Input in Mac OSX, there is no sound coming out from the speaker. How do I make the Speaker output the Line In audio?

    Read the article

  • Clicking on Dock icon does not bring window on top (OS X Lion)

    - by Andrey Fedoseev
    I am using OS X Lion and I have a very annoying problem with windows not showing up when I click on Dock icons. It happens when I have some windows opened in one space but I am viewing another space at the moment. For example, I have Mail and Skype on space #2 but I am on space #1. Note that all windows are not minimized. I want to quickly switch to Mail. So I click on Mail icon in Dock, it switches the space to #2, menubar shows that active window is Mail but Mail window is actually below Skype window. The strangest thing is that sometimes it works as expected showing the Mail on top. I can't see any logic here, it's absolutely unpredictable, thus annoying. Does anyone experienced such problems? I wonder if it's a bug or correct behaviour. Is there any way to fix that?

    Read the article

  • ImageMagick vs. Cairo on Vector Graphics rasterization

    - by Sherwood Hu
    I am working on a project that needs rasterizing of drawings into image files. I have already got it work using GDI+. Wanting to create a portable solution, I am also looking into other solutions and found two - cairo and imagemagick. I am new to both, but it seems that ImageMagick can do almost all the stuff - drawing lines, arcs, circles, text etc.. plus many bitmap manipulation. However, Cairo is mentioned as competitor to GDI+ in web sites. ImageMagick is never mentioned for this purpose. I do not have time to invest on both libraries. I need to decide which one is worthy. I prefer to ImageMagick, as it seems much more powerful. What's your opinion on the two graphic libs?

    Read the article

  • QT4 - MDI model or Dock Windows?

    - by umanga
    Greetings, In the QT application we develop we need to display several 'Viewer windows'(to display data in XY plane ,YX plane,XZ plane and in 3D). We were hoping to use MDI application model ,but later client asked for a requirement to drag and view 'Viewer windows' in multiple desktops.(using multiple monitors). This can not be done using MDI window model ,because we cannot move MDI window outside the Main Application Window. Only possible way is to use Dock windows because they can be undocked from Main Application Window and move into other desktops, but Dock windows primary used for tool-palettes or utility windows. (http://doc.qt.nokia.com/4.6/qdockwidget.html#details) Is it a good practice to use Dock window for our requirement? thanks in advance.

    Read the article

  • Handling Hide/Show dock icon menu in AIR on OS X

    - by Alan
    I'm trying to figure out how to access the Show/Hide option that OS X automatically adds to the dock icon menu. The problem is that no matter what I do to hide my app, the dock icon menu will always show Hide and only if I click that option does it switch to Show. I want to have my app toggle visibility using the Invoke event but if a user hides the app that way and then right clicks the dock icon, they won't see Show, just Hide. Is there an event I can monitor for it? Or that I can trigger? I just want to have that menu option status be synced to whatever visibility status I set programatically. This has been driving me nuts!

    Read the article

  • Using an ATA-100 Hard Drive with a Thermaltake BlacX External Hard Drive Dock

    - by Joe
    Is it possible for a Thermaltake BlacX HDD Dock to connect to and recognize an ATA-100 Hard Drive? I know that the specifications for the BlacX say that it only supports SATA & SATAII, but I was hoping for one of three things: 1) for it to still work even though it isn't supported 2) for there to be some sort of workaround to make this possible 3) for there to be another part of some sort that I could purchase to make this work

    Read the article

  • Gmail as icon on Dock in os x

    - by aaaidan
    On Windows, I can add Gmail as a faux application to the Taskbar, by using something like "add to task bar" in the Wrench-Tools menu. This promotes it to appear as a native application in the task bar. I notice that the same menu item isn't there for Chrome on Mac - at least, not in the same place. I'm looking for a "Add to Dock" function. Can this be done on the OS X version of Chrome? If so, how? I'm sick of having my email client hanging out with the other browser tabs.

    Read the article

  • How to return an image in an HTTP response with CherryPy

    - by colinmarc
    I have code which generates a Cairo ImageSurface, and I expose it like so: def preview(...): surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height) ... cherrypy.response.headers['Content-Type'] = "image/png" return surface.get_data() preview.exposed = True This doesn't work (browsers report that the image has errors). I've tested that surface.write_to_png('test.png') works, but I'm not sure what to dump the data into to return it. I'm guessing some file-like object? According to the pycairo documentation, get_data() returns a buffer. I've also now tried: tempf = os.tmpfile() surface.write_to_png(tempf) return tempf Also, is it better to create and hold this image in memory (like I'm trying to do) or write it to disk as a temp file and serve it from there? I only need the image once, then it can be discarded.

    Read the article

  • Lenovo ThinkPad T400 and docking station

    - by hari
    Developer in me woke up this morning and asked me to fix this before Christmas. (As his Christmas gift). So, if I power on the laptop after docking it, everything works fine. But if I am working on it standalone and then try to dock it, I cannot get the display. Same way, if I undock it while working, I loose the display. Basically, I need to reboot for any docking/undocking dance to work. Questions: 1) What kind of information should I be looking for to understand the problem? 2) Where to find that information. After this, I can go and try to figure out what is going wrong.

    Read the article

  • Lenovo ThinkPad T400 and docking station

    - by harry
    Developer in me woke up this morning and asked me to fix this before Christmas. (As his Christmas gift). So, if I power on the laptop after docking it, everything works fine. But if I am working on it standalone and then try to dock it, I cannot get the display. Same way, if I undock it while working, I loose the display. Basically, I need to reboot for any docking/undocking dance to work. Questions: 1) What kind of information should I be looking for to understand the problem? 2) Where to find that information. After this, I can go and try to figure out what is going wrong.

    Read the article

  • iPad application - Using Dock within an application

    - by sagar
    Hello ! Every one. I am interested in development of iPad applications. I have seen iPad Demo from Apple site. There is one new functionality - which is dock in iPad. My Question is "Can we use our own Dock control ( as we have - Tab bar in iPhone ) in iPad application? " If Answer is yes - Then my other question is How? Thanks in advance for sharing your knowledge. Sagar

    Read the article

  • Dragging Files on the Dock Icon

    - by enchilada
    I know how handle dragging of files on the dock icon, and it has been asked before. However, I'm wondering, can I somehow get more control? For example, can I make the dock icon reject files that are not in the user's folder and allow only files that are in the user's folder? I'd rather do that instead of the app appearing as if it handles files outside the user's folder, and then within the app delegate afterwards reject the files by detecting the file paths. That doesn't seem good from a user's perspective.

    Read the article

  • How can I make pref changes via defaults command happen immediately?

    - by user329863
    There are many changes to Finder, Dock, etc. preferences that you can do with the defaults command, i.e. defaults write com.apple.finder AppleShowAllFiles -bool yes However, in order to make the changes take effect, you must quit and relaunch the target app: osascript -e 'tell app "Finder" to quit' When the Finder is quit like this (rather than using the killall command, as some published sources advise), it saves and restores its window placements and disk locations (but not the forward-and-back history associated with each window). Is there some way to make such changes take effect immediately, without quitting the target app? After all, when you make changes in the Dock preference panel, they take effect instantly in the Dock application. Is there some Apple Event that I can send to make the change or make the app reread its prefs?

    Read the article

  • Can I use cairoDevice in R under Windows?

    - by Karsten W.
    Currently, on my R 2.10.1 installation on Windows XP, capabilities()["cairo"] returns False. Loading the package cairoDevice fails with the message "LoadLibrary failure" however the shared library "C:/Programme/R/R-2.10.1/library/cairoDevice/libs/cairoDevice.dll" is there. Any ideas how I can make cairo work on windows?

    Read the article

  • How to dock a window to an inside edge of a dual-monitor setup

    - by Kevin M
    I have a dual monitor setup at work. I am running Windows 7 Ultimate, and I would like to take advantage of the docking feature, whereby you can drag a window to the side of the monitor and have it expand and fill to half the screen. Trouble is, I would like to drag it to the inside edge(adjoining the other screen) and it does not activate. How would I go about activating this for the inside edge?

    Read the article

< Previous Page | 1 2 3 4 5 6 7 8 9 10 11 12  | Next Page >