Codebase list muffin / ae7672c
Imported Upstream version 1.7.3 Nicolas Bourdaud 11 years ago
8 changed file(s) with 59 addition(s) and 169 deletion(s). Raw diff Collapse all Expand all
11
22 m4_define([muffin_major_version], [1])
33 m4_define([muffin_minor_version], [7])
4 m4_define([muffin_micro_version], [2])
4 m4_define([muffin_micro_version], [3])
55
66 m4_define([muffin_version],
77 [muffin_major_version.muffin_minor_version.muffin_micro_version])
0 muffin (1.7.3) olivia; urgency=low
1
2 * 1.7.3
3
4 -- Clement Lefebvre <root@linuxmint.com> Mon, 15 Apr 2013 14:53:18 +0100
5
06 muffin (1.7.2) olivia; urgency=low
17
28 * 1.7.2
+0
-162
mkinstalldirs less more
0 #! /bin/sh
1 # mkinstalldirs --- make directory hierarchy
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Original author: Noah Friedman <friedman@prep.ai.mit.edu>
6 # Created: 1993-05-16
7 # Public domain.
8 #
9 # This file is maintained in Automake, please report
10 # bugs to <bug-automake@gnu.org> or send patches to
11 # <automake-patches@gnu.org>.
12
13 nl='
14 '
15 IFS=" "" $nl"
16 errstatus=0
17 dirmode=
18
19 usage="\
20 Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
21
22 Create each directory DIR (with mode MODE, if specified), including all
23 leading file name components.
24
25 Report bugs to <bug-automake@gnu.org>."
26
27 # process command line arguments
28 while test $# -gt 0 ; do
29 case $1 in
30 -h | --help | --h*) # -h for help
31 echo "$usage"
32 exit $?
33 ;;
34 -m) # -m PERM arg
35 shift
36 test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
37 dirmode=$1
38 shift
39 ;;
40 --version)
41 echo "$0 $scriptversion"
42 exit $?
43 ;;
44 --) # stop option processing
45 shift
46 break
47 ;;
48 -*) # unknown option
49 echo "$usage" 1>&2
50 exit 1
51 ;;
52 *) # first non-opt arg
53 break
54 ;;
55 esac
56 done
57
58 for file
59 do
60 if test -d "$file"; then
61 shift
62 else
63 break
64 fi
65 done
66
67 case $# in
68 0) exit 0 ;;
69 esac
70
71 # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
72 # mkdir -p a/c at the same time, both will detect that a is missing,
73 # one will create a, then the other will try to create a and die with
74 # a "File exists" error. This is a problem when calling mkinstalldirs
75 # from a parallel make. We use --version in the probe to restrict
76 # ourselves to GNU mkdir, which is thread-safe.
77 case $dirmode in
78 '')
79 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
80 echo "mkdir -p -- $*"
81 exec mkdir -p -- "$@"
82 else
83 # On NextStep and OpenStep, the `mkdir' command does not
84 # recognize any option. It will interpret all options as
85 # directories to create, and then abort because `.' already
86 # exists.
87 test -d ./-p && rmdir ./-p
88 test -d ./--version && rmdir ./--version
89 fi
90 ;;
91 *)
92 if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
93 test ! -d ./--version; then
94 echo "mkdir -m $dirmode -p -- $*"
95 exec mkdir -m "$dirmode" -p -- "$@"
96 else
97 # Clean up after NextStep and OpenStep mkdir.
98 for d in ./-m ./-p ./--version "./$dirmode";
99 do
100 test -d $d && rmdir $d
101 done
102 fi
103 ;;
104 esac
105
106 for file
107 do
108 case $file in
109 /*) pathcomp=/ ;;
110 *) pathcomp= ;;
111 esac
112 oIFS=$IFS
113 IFS=/
114 set fnord $file
115 shift
116 IFS=$oIFS
117
118 for d
119 do
120 test "x$d" = x && continue
121
122 pathcomp=$pathcomp$d
123 case $pathcomp in
124 -*) pathcomp=./$pathcomp ;;
125 esac
126
127 if test ! -d "$pathcomp"; then
128 echo "mkdir $pathcomp"
129
130 mkdir "$pathcomp" || lasterr=$?
131
132 if test ! -d "$pathcomp"; then
133 errstatus=$lasterr
134 else
135 if test ! -z "$dirmode"; then
136 echo "chmod $dirmode $pathcomp"
137 lasterr=
138 chmod "$dirmode" "$pathcomp" || lasterr=$?
139
140 if test ! -z "$lasterr"; then
141 errstatus=$lasterr
142 fi
143 fi
144 fi
145 fi
146
147 pathcomp=$pathcomp/
148 done
149 done
150
151 exit $errstatus
152
153 # Local Variables:
154 # mode: shell-script
155 # sh-indentation: 2
156 # eval: (add-hook 'write-file-hooks 'time-stamp)
157 # time-stamp-start: "scriptversion="
158 # time-stamp-format: "%:y-%02m-%02d.%02H"
159 # time-stamp-time-zone: "UTC"
160 # time-stamp-end: "; # UTC"
161 # End:
4848 XGETTEXT = @XGETTEXT@
4949 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
5050 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
51 MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
52 GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
51 MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
52 GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
5353
5454 ALL_LINGUAS = @ALL_LINGUAS@
5555
7171
7272 .SUFFIXES:
7373 .SUFFIXES: .po .pox .gmo .mo .msg .cat
74
75 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
76 INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V))
77 INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
78 INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@;
7479
7580 .po.pox:
7681 $(MAKE) $(GETTEXT_PACKAGE).pot
7782 $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
7883
7984 .po.mo:
80 $(MSGFMT) -o $@ $<
85 $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
8186
8287 .po.gmo:
83 file=`echo $* | sed 's,.*/,,'`.gmo \
88 $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \
8489 && rm -f $$file && $(GMSGFMT) -o $$file $<
8590
8691 .po.cat:
15121512
15131513 if (window->type == META_WINDOW_DROPDOWN_MENU ||
15141514 window->type == META_WINDOW_POPUP_MENU ||
1515 window->type == META_WINDOW_COMBO){
1515 window->type == META_WINDOW_COMBO ||
1516 window->type == META_WINDOW_NOTIFICATION ||
1517 window->type == META_WINDOW_DND ||
1518 window->type == META_WINDOW_OVERRIDE_OTHER){
15161519 clutter_container_add_actor (CLUTTER_CONTAINER (info->top_window_group),
15171520 CLUTTER_ACTOR (self));
15181521 }
20262026 * Return value: (transfer none): the #MetaWindow pointed by the mouse
20272027 * %NULL when window not found
20282028 */
2029 LOCAL_SYMBOL MetaWindow*
2029 MetaWindow*
20302030 meta_screen_get_mouse_window (MetaScreen *screen,
20312031 MetaWindow *not_this_one)
20322032 {
12681268 }
12691269
12701270 static gboolean
1271 meta_frame_double_click_edge_event (MetaUIFrame *frame,
1272 GdkEventButton *event,
1273 MetaFrameControl control)
1274 {
1275 switch (control) {
1276 case META_FRAME_CONTROL_RESIZE_N:
1277 case META_FRAME_CONTROL_RESIZE_S:
1278 return meta_frame_titlebar_event (frame,
1279 event,
1280 G_DESKTOP_TITLEBAR_ACTION_TOGGLE_MAXIMIZE_VERTICALLY);
1281 case META_FRAME_CONTROL_RESIZE_E:
1282 case META_FRAME_CONTROL_RESIZE_W:
1283 return meta_frame_titlebar_event (frame,
1284 event,
1285 G_DESKTOP_TITLEBAR_ACTION_TOGGLE_MAXIMIZE_HORIZONTALLY);
1286 default:
1287 return FALSE;
1288 }
1289 }
1290
1291 static gboolean
12711292 meta_frames_button_press_event (GtkWidget *widget,
12721293 GdkEventButton *event)
12731294 {
13161337 {
13171338 meta_core_end_grab_op (display, event->time);
13181339 return meta_frame_double_click_event (frame, event);
1340 }
1341
1342 if (event->button == 1 &&
1343 event->type == GDK_2BUTTON_PRESS &&
1344 (control == META_FRAME_CONTROL_RESIZE_N ||
1345 control == META_FRAME_CONTROL_RESIZE_S ||
1346 control == META_FRAME_CONTROL_RESIZE_E ||
1347 control == META_FRAME_CONTROL_RESIZE_W))
1348 {
1349 meta_core_end_grab_op (display, event->time);
1350 return meta_frame_double_click_edge_event (frame, event, control);
13191351 }
13201352
13211353 if (meta_core_get_grab_op (display) !=
64306430 return "FOCUSED";
64316431 case GTK_STATE_FLAG_BACKDROP:
64326432 return "BACKDROP";
6433 #if GTK_MAJOR_VERSION > 3 || (GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION >= 7)
6434 case GTK_STATE_FLAG_DIR_LTR:
6435 return "DIR_LTR";
6436 case GTK_STATE_FLAG_DIR_RTL:
6437 return "DIR_RTL";
6438 #endif
64336439 }
64346440
64356441 return "<unknown>";