当在13.04启动Guake终端时,顶部仍有1到2厘米的空间。也就是说,THe guake终端的顶部边框是屏幕顶部边缘下方的1-2厘米。
我怎样才能解决这个问题,因为它在12.10中运行得很好。
根据所选的答案,它现在移到了顶部,好的,但是有没有人对两边的两行小字有任何想法?( :)它一直困扰着我。
发布于 2013-04-28 19:23:13
你可以通过让重力向上移动来解决这个问题。不,说真的;)
您需要对文件/usr/share/guake/guake.glade做一个简单的更改。使用您最喜欢的文本编辑器打开该文件,并查找以下行:
<property name="gravity">static</property>把那条线改了,这样它就写了
<property name="gravity">north</property>保存文件,重新启动Guake,空白就会消失。
发布于 2013-05-29 08:14:48
瓜克林场使航站楼回溯到门努巴,我用nano /usr/bin/guake做过。
找到这个并在返回前添加window_rect.y = 25
def get_final_window_rect(self):
"""Gets the final size of the main window of guake. The height
is the window_height property, width is window_width and the
horizontal alignment is given by window_alignment.
"""
screen = self.window.get_screen()
height = self.client.get_int(KEY('/general/window_height'))
width = 100
halignment = self.client.get_int(KEY('/general/window_halignment'))
# get the rectangle just from the first/default monitor in the
# future we might create a field to select which monitor you
# wanna use
window_rect = screen.get_monitor_geometry(0)
total_width = window_rect.width
window_rect.height = window_rect.height * height / 100
window_rect.width = window_rect.width * width / 100
if width < total_width:
if halignment == ALIGN_CENTER:
window_rect.x = (total_width - window_rect.width) / 2
elif halignment == ALIGN_LEFT:
window_rect.x = 0
elif halignment == ALIGN_RIGHT:
window_rect.x = total_width - window_rect.width
window_rect.y = 25 # <<<<<<<<<<<<<<<<<<<<< here
return window_recthttps://askubuntu.com/questions/287204
复制相似问题