Skip to content

Instantly share code, notes, and snippets.

yurenju@yurenju-desktop:~/projects/lxlauncher-gmenu/data$ svn ci --username yurenju launcher.menu
svn: 送交失敗 (細節隨附):
svn: Server sent unexpected return value (403 Forbidden) in response to MKACTIVITY request for '/svnroot/lxde/!svn/act/28efa11d-076a-493c-8504-233b6c0e7f11'
svn: 你的送交訊息遺留在暫存檔中:
svn: '/home/yurenju/projects/lxlauncher-gmenu/data/svn-commit.2.tmp'
Index: src/vfs-utils.c
===================================================================
--- src/vfs-utils.c (revision 838)
+++ src/vfs-utils.c (working copy)
@@ -35,7 +35,7 @@
file = gtk_icon_info_get_filename( inf );
if( G_LIKELY( file ) )
- icon = gdk_pixbuf_new_from_file( file, NULL );
+ icon = gdk_pixbuf_new_from_file_at_scale(file, size, size, TRUE, NULL);
class LinuxApplication(db.Model):
Package = db.StringProperty(required=True)
DownloadCount = db.IntegerProperty()
Section = db.StringProperty()
Name = db.ReferenceProperty(TranslationString)
Comment = db.ReferenceProperty(TranslationText)
GenericName = db.ReferenceProperty(TranslationString)
Exec = db.StringProperty()
Icon = db.StringProperty()
Categories = db.ListProperty(int)
class LinuxApplication(db.Model):
Package = db.StringProperty(required=True)
DownloadCount = db.IntegerProperty()
Section = db.StringProperty()
Name = db.ReferenceProperty(TranslationString, collection_name='name_collection')
Comment = db.ReferenceProperty(TranslationString, collection_name='comment_collection')
GenericName = db.ReferenceProperty(TranslationString, collection_name='generic_name_collection')
Exec = db.StringProperty()
Icon = db.StringProperty()
Categories = db.ListProperty(int)
<match key="info.product" string="TPPS/2 IBM TrackPoint">
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>
function! OnlineDoc()
let s:browser = "firefox"
let s:wordUnderCursor = expand("<cword>")
if &ft == "cpp" || &ft == "c" || &ft == "ruby" || &ft == "php" || &ft == "python"
let s:url = "http://www.google.com/codesearch?q=".s:wordUnderCursor."+lang:".&ft
elseif &ft == "vim"
let s:url = "http://www.google.com/codesearch?q=".s:wordUnderCursor
else
return
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
import pygtk
pygtk.require('2.0')
import sys, os, errno
import gtk
import pango
static void
set_event_box_background (GtkWidget *event_box)
{
GError *error = NULL;
const gchar *file_path = g_strjoin ("/", PKGDATADIR, "images", "slider_bg.png", NULL);
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (file_path, &error);
GdkPixmap *pixmap = NULL;
GdkPixmap *mask = NULL;
gdk_pixbuf_render_pixmap_and_mask (pixbuf, &pixmap, &mask, 255);
function pget()
{
echo $1
cmd="pget -n 5 $1; exit"
lftp -e "$cmd"
}
const Ci = Components.interfaces;
const Cc = Components.classes;
const Cr = Components.results;
const Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
function promptService() {
let bundleService = Cc["@mozilla.org/intl/stringbundle;1"].getService(Ci.nsIStringBundleService);
this._bundle = bundleService.createBundle("chrome://global/locale/commonDialogs.properties");