by
Changes to 4 files · Browse files at 9acbd89ae4f1 Showing diff from parent 7c19bdf206aa bac6b73d51b3 Diff from another changeset...
@@ -321,7 +321,7 @@ col1.set_resizable(False)
self.filetree.append_column(col1)
- if self.merging:
+ if self.count_revs() <= 1:
col = gtk.TreeViewColumn(_('ms'), stat_cell)
col.add_attribute(stat_cell, 'text', FM_MERGE_STATUS)
col.set_sort_column_id(4)
|
@@ -116,7 +116,7 @@ MenuDescriptionMap MenuDescMap;
MenuIdCmdMap MenuIdMap;
-void AddMenuList(int idCmd, std::string const& name)
+void AddMenuList(int idCmd, const std::string& name)
{
TDEBUG_TRACE("AddMenuList: idCmd = " << idCmd << " name = " << name);
MenuIdMap[idCmd] = MenuDescMap[name];
@@ -139,7 +139,7 @@}
void InsertMenuItemWithIcon(HMENU hMenu, int indexMenu, int idCmd,
- std::string const& menuText, std::string const& iconName)
+ const std::string& menuText, const std::string& iconName)
{
MENUITEMINFO mi;
mi.cbSize = sizeof(mi);
@@ -164,7 +164,7 @@}
void InsertSubMenuItemWithIcon(HMENU hMenu, HMENU hSubMenu, int indexMenu, int idCmd,
- std::string const& menuText, std::string const& iconName)
+ const std::string& menuText, const std::string& iconName)
{
MENUITEMINFO mi;
mi.cbSize = sizeof(mi);
@@ -189,7 +189,7 @@ InsertMenuItem(hMenu, indexMenu, TRUE, &mi);
}
-void InsertMenuItemByName(HMENU hMenu, std::string const& name, int indexMenu,
+void InsertMenuItemByName(HMENU hMenu, const std::string& name, int indexMenu,
int idCmd, int idCmdFirst)
{
TDEBUG_TRACE("InsertMenuItemByName: name = " << name);
|
|
@@ -0,0 +1,40 @@ +
+OBJECTS_DIRSTATE = TortoiseUtils.obj \
+ Direntry.obj \
+ Directory.obj \
+ Winstat.obj
+
+OBJECTS_THGSGELL = $(OBJECTS_DIRSTATE) \
+ ContextMenu.obj \
+ IconOverlay.obj \
+ ShellExt.obj \
+ ShellUtils2.obj \
+ StringUtils.obj \
+ dirstate.obj \
+ Winstat64.obj \
+ Dirstatecache.obj \
+ DirectoryStatus.obj \
+ QueryDirstate.obj
+
+LIBS = User32.lib Ole32.lib Shlwapi.lib Shell32.lib Advapi32.lib
+DEFFILE = ShellExt.def
+
+
+CPPFLAGS = /nologo /Ox /W2 /EHsc /MD /DAPPMAIN
+BASE_LDFLAGS = /nologo /INCREMENTAL:NO /MANIFEST $(LIBS)
+LDFLAGS_THGSHELL = $(BASE_LDFLAGS) /DLL /DEF:$(DEFFILE)
+LDFLAGS_DIRSTATE = $(BASE_LDFLAGS) /SUBSYSTEM:CONSOLE
+
+
+all: THgShell.dll dirstate.exe
+
+clean:
+ del *.obj *.dll *.exe *.lib *.exp *.manifest
+
+THgShell.dll: $(OBJECTS_THGSGELL)
+ link /OUT:$@ $(LDFLAGS_THGSHELL) $**
+ mt -nologo -manifest $@.manifest -outputresource:"$@;#2"
+
+dirstate.exe: dirstate.obj $(OBJECTS_DIRSTATE)
+ link /OUT:$@ $(LDFLAGS_DIRSTATE) $**
+ mt -nologo -manifest $@.manifest -outputresource:"$@;#1"
|
@@ -43,7 +43,7 @@ };
-bool hasHgDir(std::string const& path)
+bool hasHgDir(const std::string& path)
{
return PathIsDirectory((path + "\\.hg").c_str()) != 0;
}
|
Loading...