# Path: meld/misc.py
#     def select(rlist, wlist, xlist, timeout):
# def shelljoin( command ):
#     def quote(s):
# def run_dialog( text, parent=None, messagetype=gtk.MESSAGE_WARNING, buttonstype=gtk.BUTTONS_OK, extrabuttons=()):
# def open_uri(uri, timestamp=0):
# def position_menu_under_widget(menu, widget):
# def make_tool_button_widget(label):
# def gdk_to_cairo_color(color):
# def all_equal(alist):
# def shorten_names(*names):
#             def firstpart(alist):
# def read_pipe_iter(command, errorstream, yield_interval=0.1, workdir=None):
#         def __init__(self):
#         def __del__(self):
#         def __call__(self):
# def write_pipe(command, text, error=None):
# def commonprefix(dirs):
# def copy2(src, dst):
# def copytree(src, dst):
# def shell_escape(glob_pat):
# def shell_to_regex(pat):
#     class sentinel(object):
# 
# Path: meld/paths.py
# def locale_dir(*args): # i18n files
# def help_dir(*args): # help
# def share_dir(*args):
# def ui_dir(*args):
# def icon_dir(*args):


import os
import textwrap
import gtk
import pango
from gettext import gettext as _
from meld import misc
from meld import paths
from . import gnomeglade
# Copyright (C) 2002-2006 Stephen Kennedy <stevek@gnome.org>
# Copyright (C) 2010-2013 Kai Willadsen <kai.willadsen@gmail.com>

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
# USA.

from __future__ import print_function





# FIXME: Duplication from vcview
def _commonprefix(files):
    if len(files) != 1:

# Path: meld/misc.py
#     def select(rlist, wlist, xlist, timeout):
# def shelljoin( command ):
#     def quote(s):
# def run_dialog( text, parent=None, messagetype=gtk.MESSAGE_WARNING, buttonstype=gtk.BUTTONS_OK, extrabuttons=()):
# def open_uri(uri, timestamp=0):
# def position_menu_under_widget(menu, widget):
# def make_tool_button_widget(label):
# def gdk_to_cairo_color(color):
# def all_equal(alist):
# def shorten_names(*names):
#             def firstpart(alist):
# def read_pipe_iter(command, errorstream, yield_interval=0.1, workdir=None):
#         def __init__(self):
#         def __del__(self):
#         def __call__(self):
# def write_pipe(command, text, error=None):
# def commonprefix(dirs):
# def copy2(src, dst):
# def copytree(src, dst):
# def shell_escape(glob_pat):
# def shell_to_regex(pat):
#     class sentinel(object):
# 
# Path: meld/paths.py
# def locale_dir(*args): # i18n files
# def help_dir(*args): # help
# def share_dir(*args):
# def ui_dir(*args):
# def icon_dir(*args):


# Path: meld/ui/vcdialogs.py
import os
import textwrap
import gtk
import pango
from gettext import gettext as _
from meld import misc
from meld import paths
from . import gnomeglade

# Copyright (C) 2002-2006 Stephen Kennedy <stevek@gnome.org>
# Copyright (C) 2010-2013 Kai Willadsen <kai.willadsen@gmail.com>

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
# USA.

from __future__ import print_function





# FIXME: Duplication from vcview
def _commonprefix(files):
    if len(files) != 1:

        workdir = misc.commonprefix(files)