FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 03-22-2011, 05:38 AM
Ales Kozumplik
 
Default gui.py: nuke titleBar*()

I should have removed this with 8b51f7ccee637e16e28e9b06faa993083c04702e.
---
pyanaconda/gui.py | 31 -------------------------------
1 files changed, 0 insertions(+), 31 deletions(-)

diff --git a/pyanaconda/gui.py b/pyanaconda/gui.py
index ac90e2a..3bc557e 100755
--- a/pyanaconda/gui.py
+++ b/pyanaconda/gui.py
@@ -285,37 +285,6 @@ class WrappingLabel(gtk.Label):
self.ignoreEvents = 0
widgetExpander(self)

-def titleBarMousePressCB(widget, event, data):
- if event.type & gtk.gdk.BUTTON_PRESS:
- (x, y) = data["window"].get_position()
- data["state"] = 1
- data["button"] = event.button
- data["deltax"] = event.x_root - x
- data["deltay"] = event.y_root - y
-
-def titleBarMouseReleaseCB(widget, event, data):
- if data["state"] and event.button == data["button"]:
- data["state"] = 0
- data["button"] = 0
- data["deltax"] = 0
- data["deltay"] = 0
-
-def titleBarMotionEventCB(widget, event, data):
- if data["state"]:
- newx = event.x_root - data["deltax"]
- newy = event.y_root - data["deltay"]
- if newx < 0:
- newx = 0
- if newy < 0:
- newy = 0
- (w, h) = data["window"].get_size()
- if (newx+w) > gtk.gdk.screen_width():
- newx = gtk.gdk.screen_width() - w
- if (newy+20) > (gtk.gdk.screen_height()):
- newy = gtk.gdk.screen_height() - 20
-
- data["window"].move(int(newx), int(newy))
-
def addFrame(dialog, title=None):
# make screen shots work
dialog.connect ("key-release-event", handlePrintScrnRelease)
--
1.7.3.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 03:29 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org